You must be logged in to post your query.
Home › Forums › Chart Support › Negative yAxis
Not sure why I’m seeing ‘negative’ axisY2 on these charts –
https://www.bankdeposits.com/listings-zip-08402 https://www.bankdeposits.com/listings-zip-08232
?
Thanks!
Jim Ginn
Jim Ginn,
Axis range depends on multiple factors like y-values of dataseries attached, other chart-options like includeZero, interval, minimum, maximum, etc. In your case, multiple dataseries are attached to secondary y-axis that includes range of values from 0.18 to 281. Hence, auto calculated axis minimum includes a negative interval. Setting minimum: 0 should remove negative values in this case.
minimum: 0
— Vishwas R Team CanvasJS
thanks!
that did it
Jim
Additionally!
Is there a way to ‘fix’ the yAxis on these multi YAxis charts like –
https://www.bankdeposits.com/listings-county-12103,12057,12053,12101
Basically want the the option of keeping the YAxis the same if you toggle on/off the legends …
Jim,
Setting minimum & maximum properties should work fine in this case. Please find the code-snippet below.
axisY: { minimum: 0, maximum: 30000 }, axisY2: { minimum: 0, maximum: 12000 }
You must be logged in to reply to this topic. Login/Register