Reputation: 21
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
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