Home Forums Chart Support How to control axis tick with float number?

How to control axis tick with float number?

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

    Hello.

    I use canvasJS for chart.

    It works well. But sometimes it’s not.

    When I set minimum and maximum in YAxis option, sometimes charts are weird.

    For example, maximum is 7.4 and minmum is 7.2.
    Actually, it seems like maximum is 7.6 and mimimum is 7.0.
    And interval between tick and tick is 0.1.
    But, 7.0 is showed 7.000000001. So, the YAxis starts right side far from YAxis Title.
    Like this.

    Y     7.6┃
    T     7.5┃
    I     7.4┃
    T     7.3┃
    L     7.2┃
    E     7.1┃
     7.000000001┃
           ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

    #32855

    @jeonkook,

    Setting floating values in minimum and maximum of y-axis seems to be working fine. Please take a look at this JSFiddle for the same.

    axisY: {
        maximum: 7.4,
        minimum: 7.2
    }

    Setting Floating values in minimum and maximum of y-axis

    If you are still facing the issue, kindly create JSFiddle reproducing the issue you are facing and share it with us so that we can understand your scenario better and help you out.

    —-
    Manoj Mohan
    Team CanvasJS

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

You must be logged in to reply to this topic.