You must be logged in to post your query.
Home › Forums › Feature Requests & Feedback › add centerZero feature
Hello, As the “includeZero”, could it be possible to add the “centerZero” option to set min = – max value for at least axisY types in the Axis.prototype.calculateAxisParameters function? The code just after applying includeZero (//Apply includeZero) could be something like :
Axis.prototype.calculateAxisParameters
//Apply includeZero
if (this.centerZero) { // Force includeZero if (max < 0) max = 0; if (min > 0) min = 0; // Apply centerZero if (max > -min) min = -max; else max = -min; }
This would be much easier to do it that way instead of to update the axes min/max after rendering, and more after zooming.
Thank you
@ludovic-dtgmail-com,
Thanks for the suggestion. I will discuss this behavior with the team for future releases.
___________ Indranil Deo, Team CanvasJS
You must be logged in to reply to this topic. Login/Register