Home › forums › Chart Support › Asking to get help for chart AxisX configuration to include 0
Currently we could solve Y default value to 0 by using the following code:
this.canvasChart.options.axisY.includeZero = s.includeZeroY;
The request is to add the same functionality for X-axis ASAP.
See more details here: https://canvasjs.com/forums/topic/include-zero-axis-x/
When the variation of y-values are too small, it’s difficult to visualize the variation of values. To overcome this, includeZero property can be used which sets axis range such that the difference becomes prominently visible.
But over x-axis there is no such case of varying values, so there is no such property over x-axis. To make 0 value visible over x-axis you can set minimum to 0.
Considering this thread as duplicate of include Zero axis X and hence closing the same.
You must be logged in to reply to this topic.