You must be logged in to post your query.
Home › Forums › Chart Support › Get X value after range changed
Tagged: event, rangeChanged, viewPortMinimum, xvalue
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/
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.
Thank you very much! It was exactly what I needed!
You must be logged in to reply to this topic. Login/Register