Sets the minimum value of Axis. Values smaller than minimum are clipped. minimum also sets the lower limit while panning chart.
Default: Automatically Calculated based on the datavar chart = new CanvasJS.Chart("container", { . . axisY:{ minimum: 150, }, . . }); chart.render();
Also See:
12 Comments
i find answer ))
axisY: {interval: 0.5,
minimum: 3,
maximum: 4.5},
first i maked mistake, by adding this code in data: [ ] , when i do it befor data:[ ], it works :)
what if I only want to put tickMarks on a specified minimum and maximum but i still want to show the rest of the graph beyond the maximum and below minimum?
not working for me. Candle stick chart. Y values are double 0.5 to 1.5. I set
asixY: {
interval: 0.1,
minimum: 0.3,
maximum: 1.8,
valueFormatString: “0.0000”
},
so it shows asix Y 0 to 2 with interval 0.5
Sorry, but we are not able to reproduce the issue at our end. Can you please create a jsfiddle and post it in our forum?
sorry, my mistake. “asixY” instead of “axisY”
How can i reverse Y axis eg. I want minimum value 100 and maximum value 1 ?
This feature is not available yet but we are considering the same for future versions.
do you have some news?
Doesn’t seem to auto calculate the minimum for me, it’s always 0, which means i have a line way at the top (data has a minimum of around 70, and max of 78).
John,
You should set includeZero to false to get the required behaviour.
Thanks for the suggestion. I set includeZero to false on axisY but nothing changed. :(
Nevermind, it is working, I forgot there were some 0’s in my data for that period causing the axis range to auto down to zero. Thanks!