maq webster
maq webster

Reputation: 21

how to get X and Y axis visible min and max values from Lightning Chart

I need to get values of visible X and Y axis from lightning chart, I am using dashboard.createChartXy() with zoom band feature.

Upvotes: 0

Views: 447

Answers (1)

Niilo Keinänen
Niilo Keinänen

Reputation: 2582

The active interval of an Axis can be requested with Axis.getInterval method.

const xInterval = chart.getDefaultAxisX().getInterval()
console.log(xInterval.start, xInterval.end)

Upvotes: 0

Related Questions