You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Question
How to get the x position to get Date when clicking on the Line Chart
this.chart.events.on('click', (event) => {
let x = event.target.getPrivate('x'); // return undefined, there is no option "positionX" for getPrivate function, just "x"
let dateX = this.xAxis.positionToDate(x);
});
I also tried this but it still does not work
cursor.events.on('click', (ev) => {
let x = (ev.target as any).getPrivate('positionX'); // return undefined
let dateX = this.xAxis.positionToDate(x);
});
App info: Angular 16, Amchart 5
The text was updated successfully, but these errors were encountered:
Question
How to get the x position to get Date when clicking on the Line Chart
I also tried this but it still does not work
App info: Angular 16, Amchart 5
The text was updated successfully, but these errors were encountered: