# HG changeset patch # User IBBoard # Date 1496064701 -3600 # Node ID c1d89ae900d57c33088e33af1b323f2b54a925e6 # Parent b83d9186c2af2c3ea9dcccbe65fe6d233d8c3849 Put zero on the focal length axis Before we went to 90% of smallest value, which is 3.6mm when you've got a camera phone - barely seems worth the lack of label! diff -r b83d9186c2af -r c1d89ae900d5 exif-graphr.js --- a/exif-graphr.js Mon May 29 14:28:30 2017 +0100 +++ b/exif-graphr.js Mon May 29 14:31:41 2017 +0100 @@ -257,7 +257,7 @@ } function update_graph(filteredPhotos) { - flAxisScale.domain([d3.min(filteredPhotos, function(val) { return val.focal_length; }) * 0.9, d3.max(filteredPhotos, function(val) { return val.focal_length; }) * 1.1]); + flAxisScale.domain([0, d3.max(filteredPhotos, function(val) { return val.focal_length; }) * 1.1]); flAxis.scale(flAxisScale); axises.selectAll(".y.axis").call(flAxis); expAxisScale.domain([d3.min(filteredPhotos, function(val) { return val.exposure; }) * 0.9, d3.max(filteredPhotos, function(val) { return val.exposure; }) * 1.1]);