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 1 week, 3 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #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.