This is a migrated thread and some comments may be shown as answers.

OnSeriesClick Client side returned property

0 Answers 21 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 04 Jan 2018, 09:42 PM

Can anyone please help me to tell me on a series click, HOW can I get the name of the series that I'm clicking?  I read the support but it takes me to the Kendo support document.  I see Kendo document has these varaible that I can get on java script:

 

e.series Object
The series options.

e.seriesIndex Number
The series index.

e.text String
The name of the series.

 

So the one I'm interested is the "name"  I need to be able to go "do different things" depend on what area of the pie chart user presses.  I tried to do the client side code but it always return "nothing" or "unknown".

 

            function NameGet(args) {
                
                alert(args..text);  -- or I do args.series.name 
            }

 

 

so what is the appropriate e.xxx to get the name of the series?  Under the <teleri:PieSeries>  I have NameField="Description"  So I'm trying to get the NameField from the client side when they click on the pie chart.

 

Thank you!

 

 

No answers yet. Maybe you can help?

Tags
Chart (HTML5)
Asked by
Frank
Top achievements
Rank 1
Share this question
or