Home forums Using CanvasJS Getting Y value between two X points.

This topic contains 3 replies, has 2 voices, and was last updated by  markpx 5 months, 3 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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 6 months, 1 week 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.