Mercurial > repos > other > exif-graphr
comparison exif-graphr.js @ 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 |
comparison
equal
deleted
inserted
replaced
2:b83d9186c2af | 3:c1d89ae900d5 |
---|---|
255 update_table(photos); | 255 update_table(photos); |
256 update_legend(photosWithExif); | 256 update_legend(photosWithExif); |
257 } | 257 } |
258 | 258 |
259 function update_graph(filteredPhotos) { | 259 function update_graph(filteredPhotos) { |
260 flAxisScale.domain([d3.min(filteredPhotos, function(val) { return val.focal_length; }) * 0.9, d3.max(filteredPhotos, function(val) { return val.focal_length; }) * 1.1]); | 260 flAxisScale.domain([0, d3.max(filteredPhotos, function(val) { return val.focal_length; }) * 1.1]); |
261 flAxis.scale(flAxisScale); | 261 flAxis.scale(flAxisScale); |
262 axises.selectAll(".y.axis").call(flAxis); | 262 axises.selectAll(".y.axis").call(flAxis); |
263 expAxisScale.domain([d3.min(filteredPhotos, function(val) { return val.exposure; }) * 0.9, d3.max(filteredPhotos, function(val) { return val.exposure; }) * 1.1]); | 263 expAxisScale.domain([d3.min(filteredPhotos, function(val) { return val.exposure; }) * 0.9, d3.max(filteredPhotos, function(val) { return val.exposure; }) * 1.1]); |
264 expAxis.scale(expAxisScale); | 264 expAxis.scale(expAxisScale); |
265 axises.selectAll(".x.axis").call(expAxis) | 265 axises.selectAll(".x.axis").call(expAxis) |