I\'m new to d3 and Javascript. I have played around with the choropleth example but would like to now make some more detailed changes. One of which is to find the max and mi
I'm new to d3 and JavaScript as well but I found a workaround to find the min and max of three lines with objects, using d3.extent and .concat:
y.domain(
d3.extent(
d3.extent(data, function(d) {
return d.line1; })
.concat(d3.extent(data, function(d) {
return d.line2; })
.concat(d3.extent(data, function(d) {
return d.line3; })
))
));