Home forums Using CanvasJS How are the viewport attributes formatted when the axis numbers are a time? Reply To: How are the viewport attributes formatted when the axis numbers are a time?

#15715

Indranil Deo
Member

@ayy,

You can use rangeChanging or rangeChanged event to get viewportMinimum and viewportMaximum after zooming / panning.
And you can use formatDate() to modify the date as per your requirement.

————-
Indranil Deo
Team CanvasJS