How to add CLICK events on AMCHARTS 5 labels (x and y axis)?

Viewed 15

I am trying to add basic interactivity to my AMCHARTS 5 labels. Take this chart as an example:

enter image description here

I need to be able to click on the names at the left of the chart. That is actually yAxis because I use an inverted chart. In the function that creates the series, I placed this code:

series.columns.template.events.once("click", function(ev) {
                    console.log("Clicked on a column", ev.target);
                });

And it makes my bars to be clickable. I don't know how to refer to the labels on the left.

0 Answers
Related