Yash.S.Narang
Yash.S.Narang

Reputation: 564

Obtain visible scale/range of axis

I am using Arction LightningChartJs I would like to know how to obtain the current scale/range of the visible x axis in a progressively scrolling axis. Thanks

Upvotes: 1

Views: 97

Answers (1)

Yash.S.Narang
Yash.S.Narang

Reputation: 564

chart.getDefaultAxisX().scale.getInnerStart();//Returns the start of the x axis
chart.getDefaultAxisX().scale.getInnerEnd();//Returns the end of the x axis

The chart class has the scale property which inturn has methods to retrieve the start and end points at the time these methods are triggered.

Upvotes: 1

Related Questions