LineSeries - DrillDown?

2 posts, 0 answers
  1. T N
    T N avatar
    3 posts
    Member since:
    Jul 2013

    Posted 08 Jul 2013 Link to this post

    Hi,
    i use LineSeries to display temperature history over time. Because of big data, I would like to build up a DrillDown ChartView where the first view should be categorized by "MMM yyyy" and when I click on each data point I will drill down to "dd/MM/yyyy". However it seems to be that the radChartView1_Drill event wasn't fired when I click on data point.

    My question is: How can I make a Drilldown effect for LineSeries Chartview?

    I attach below my first view categorized by "MMM yyy"

    My code snippet is

    private DrillDownController drillDownController = new DrillDownController();
    private DateTime lastSelectedMonth;
     
    private void InitializeChart()
    {
        radChartView1.ShowTitle = true;
        radChartView1.ShowLegend = true;
        radChartView1.ShowSmartLabels = true;
     
        radChartView1.Controllers.Add(drillDownController);
        radChartView1.Drill += new DrillEventHandler(radChartView1_Drill);
        radChartView1.ShowDrillNavigation = true;
        radChartView1.Views.AddNew();
    }
     
    private void radChartView1_Drill(object sender, DrillEventArgs e)
    {
        switch (e.Level)
        {
            case 0:
                GroupByMonthYear(e.View);
                break;
     
            case 1:
                if (e.SelectedPoint != null)
                    lastSelectedMonth = Convert.ToDateTime((e.SelectedPoint.DataItem as System.Data.DataRowView).Row.ItemArray[0]);
                GroupByDay(e.View, lastSelectedMonth);
                break;
        }
    }
  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 11 Jul 2013 Link to this post

    Hi Tri,

    Thank you for question.

    LineSeries does not support Hit testing operation e.g. in other words the line series cannot be clicked. So your scenario is not supported and due to the nature of the request I am not able to provide a solution for it.
    I will log this as a feature request to our Public Issue Tracking System. You can subscribe for status updates here: http://www.telerik.com/support/pits.aspx#/public/winforms/15347.

    Should you have any other questions, do not hesitate to ask.

    Regards,
    Peter
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top