changeset 8:58bd10d0c78e

Add colour coding to match the main graph
author IBBoard <dev@ibboard.co.uk>
date Sat, 03 Jun 2017 20:54:38 +0100
parents a803fabf200e
children db2811ebfbd2
files exif-graphr.js
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/exif-graphr.js	Sat Jun 03 20:54:14 2017 +0100
+++ b/exif-graphr.js	Sat Jun 03 20:54:38 2017 +0100
@@ -385,6 +385,9 @@
 		.attr('cx', function(bee) { return bee.x; })
 		.attr('cy', function(bee) { return calculateBeeY(bee); })
 		.attr('r', 4)
+		.attr("fill", function (bee) { var d = bee.datum; var h = make_camera_hue(d.camera); var s = saturationScale(d.iso); return "hsl("+h+","+s+"%,50%)";})
+		.attr("stroke", "#000")
+		.attr("stroke-width", 1);
 }
 
 function calculateBeeY(bee) {