Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
datachart click
posted

Hi,

I'm trying to execute a function on column click.

   seriesMouseLeftButtonDown: function (evt, ui) {
                    alert(ui.item.myXaxis+" "+ui.item.?????);
            
                },);

When I click on column i get the x axis label, but I need the series name also. How can I get it?

Parents
  • 21595
    Verified Answer
    Offline posted

    Hello Luca,

    ui parameter of seriesMouseLeftButtonDown event has series option. Through this option you can get the series where left button down happened. Then to get the name of the series get name option of the series object. You can use code like this:

    seriesMouseLeftButtonDown: function (evt, ui) {
     alert(ui.item.myXaxis + " " + ui.series.name);
    }

    Please let me know if this solves your issue, or if you need any further assistance on this matter.

Reply Children
No Data