Developing Drill Down Functionality on a Line Chart using RadHtmlChart

2 posts, 0 answers
  1. Sampath
    Sampath avatar
    12 posts
    Member since:
    Mar 2013

    Posted 03 Aug Link to this post

    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.

  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 04 Aug Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top