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

LineSeries - DrillDown?

1 Answer 82 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
T N
Top achievements
Rank 1
T N asked on 08 Jul 2013, 08:47 AM
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;
    }
}

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 11 Jul 2013, 10:59 AM
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 >>
Tags
ChartView
Asked by
T N
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or