I'm currently using a d3.js graph which is written in javascript. You can find the original graph here (view the source to see the javascript coding): http://mbostock.github.io/d3/talk/20111018/area-gradient.html
The last line of the following code seems to calculate the maximum value of the Y-axis:
// Compute the maximum price.
x.domain([new Date(1999, 0, 1), new Date(2003, 0, 0)]);
y.domain([0, d3.max(data, function(d) { return d.value; })]);
I'm not happy with the way it gets calculated. I have no knowledge of javascripting at all, but I found out that I could replace the "function(d) { return d.value; })" part by an integer and it would show me a graph which looks better.
I've made a php page which will output the highest value which is in my data set.
My question is now, how can I get the output of the page on the location of this function? It should like this:
y.domain([0, <webpage value>]);
Thanks a lot for your help,
Greggy