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 :
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