# HG changeset patch # User IBBoard # Date 1496519678 -3600 # Node ID 58bd10d0c78ec583558d90e8bfedd643ee4602d1 # Parent a803fabf200ef72124fa4a55d98fa48aee095dc2 Add colour coding to match the main graph diff -r a803fabf200e -r 58bd10d0c78e exif-graphr.js --- 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) {