Home Forums Chart Support Change Automatic Spacing For Y-Axis Grid Lines

Change Automatic Spacing For Y-Axis Grid Lines

Viewing 2 posts - 1 through 2 (of 2 total)
  • #25824

    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)?

    #25830

    @bfailing,

    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.


    Vishwas R
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.