Home Forums Chart Support Get X value after range changed

Get X value after range changed

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

    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:
    https://canvasjs.com/docs/charts/chart-options/range-changed/

    #10097

    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

    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.