PDA

View Full Version : How to change the y-axis default value of a bar graph



mtan12
6 Feb 2014, 6:30 AM
Hi,

I am wondering how to change the default y-axis of a bar graph. On a daily day based, I get data ranges from -1 and 1. There are times when I get value ranges from -0.15 and 0.15. On these occasion, the bar barely fills up the screen.

Is there anyway I can change the default value -1 to 1 to a smaller interval like -0.15 to 0.15, but at the same time, the interval is dynamic so if I get any value outside the interval, it will grow?

mtan12
6 Feb 2014, 7:37 AM
For now, I use javascript to set the interval

graph.axes.get(1).maximum = max;
graph.axes.get(1).minimum = min;
graph.redraw();