Home Forums Chart Support Issue with a Big Gap between y-axis title and label

Issue with a Big Gap between y-axis title and label

Viewing 3 posts - 1 through 3 (of 3 total)
  • #61338

    I have a problem in the chart that automatically generates a big gap between the y-axis title and label in my fiddle. I make a 2-data object, the one that is already loaded into the chart has a big gap, and if you load the commented object to the chart, the gap will disapear. I searched all over the internet for the solution, but I couldn’t find one.

    #61339

    fiddle In the code, if I load the commented data object, the gap between the y-axis title and label becomes normal.

    #61344

    @nelly25,

    The gap between the y-axis title and labels is caused by the stripLines with labelPlacement: "outside" and a transparent label reserving space in the problematic dataset (y-values ~124–233), as the stripline’s value (150) is within the axis range, affecting the layout. In the commented dataset (y-values ~43–63), the stripline’s value is outside the axis range, making it invisible and eliminating the gap. You can remove stripLines from axisY or set labelPlacement: "inside" to fix this issue.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.