changeset 3:c1d89ae900d5

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!
author IBBoard <dev@ibboard.co.uk>
date Mon, 29 May 2017 14:31:41 +0100
parents b83d9186c2af
children ce99564f2eb5
files exif-graphr.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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]);