Home Forums Chart Support Getting Y value between two X points.

Getting Y value between two X points.

Viewing 4 posts - 1 through 4 (of 4 total)
  • #25101

    I have this sample chart: https://codepen.io/markpx/pen/qGOBbr where I am displaying one point for each month of the year.

    For example, I have a data point on 15 February, and another on 15 March, is it possible or anyone knowns a method to get the Y value of the spline at March 1st?

    • This topic was modified 5 years, 6 months ago by markpx.
    #25120

    @markpx,

    We are looking into your query and will get back to you at the earliest.

    ——
    Manoj Mohan
    Team CanvasJS

    #25249

    @markpx,

    Please take a look at this JSFiddle.

    —–
    Manoj Mohan
    Team CanvasJS

    #25252

    Thank you, I was going with a more complicated solution that used too much cpu, yours seems to work great.

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

You must be logged in to reply to this topic.