Home › forums › Using CanvasJS › Change Automatic Spacing For Y-Axis Grid Lines
This topic contains 1 reply, has 2 voices, and was last updated by Vishwas R 2 months, 1 week ago.
I want to be able to decrease the spacing between y-axis grid lines and labels on candlestick/line/column charts. I see the information about interval, but that assumes you know the range of data ahead of time. Is there any way to control the grid line spacing say in pixels or using some arbitrary multiplier/number (e.g., 0.8 times the standard automatic spacing)?
You can get the interval of axis with the help of get method and update the same with the help of set method. Please take a look at this JSFiddle for an example on the same.
You must be logged in to reply to this topic.