Home forums Using CanvasJS Get X value after range changed

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10089

    MICHEL
    Member

    Hello guys.

    Can I get the X value of chart after range changed event?

    In the documentation says that the event returns the Viewport Minimum and viewPortMaximum but it does not solve my problem.

    I need the minimum X value of visible chart (In my case, a date).

    Thank you!

    LINK:

    rangeChanged

    #10097

    Vishwas R
    Keymaster

    Michel,

    When its date-time axis, the date-time values of JavaScript will be in milliseconds starting from 1 Jan 1970. You can convert it to date-time and set it to viewportMinimum.

    Here is an example.

    If this doesn’t resolve the issue, kindly create a jsfiddle with your case.

    #10132

    MICHEL
    Member

    Thank you very much! It was exactly what I needed!

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

You must be logged in to reply to this topic.