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

Developing Drill Down Functionality on a Line Chart using RadHtmlChart

1 Answer 129 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Sampath
Top achievements
Rank 1
Sampath asked on 03 Aug 2016, 11:09 AM

Hi there,

I am using RadHtmlChart control to display the absenteeism of several production plants on a daily basis. To accomplish this I am using the line series and each plant has a line series <telerik:LineSeries> of its own.

I was able to do this part successfully. See Image 1. 

Now each production plant has many departments and each department has many designations. 

What I want to do is when I click on a particular plant (when I select a particular line) I should be able to get the department level details belonging to that particular plant I selected.

Same goes for the getting the designations of a selected department (within the plant I selected) when I drill down furthermore.

Have followed the example mentioned here : http://demos.telerik.com/aspnet-ajax/htmlchart/examples/drilldownchart/defaultcs.aspx

This is for a column chart and it doesn't show me how I can identify the selected trend line.

string seriesName = RadHtmlChart1.PlotArea.Series[0].Name; 

Instead of getting the name of the LineSeries at the 0th Index, I want the name of the selected LineSeries.

Please help.

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 04 Aug 2016, 10:38 AM
Hi Sampath,

You can use the approach from the mentioned demo - get the series name for the seriesClicked argument:
args.get_seriesName()


Regards,
Danail Vasilev
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Chart (HTML5)
Asked by
Sampath
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or