I want to add a click event when I click some link in Amchart Navigation Bar, my code:
chart.navigationBar = new am4charts.NavigationBar();
chart.navigationBar.events.on('hit', (ev) => {
console.log(ev);
});
I just don't know how to get the link text I clicked. Say, I have navigation "Home > Help > Question", if I click "Home", how can I get the text "Home" from the click event, so I can do corresponding operation?