Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1004
drilldown in asp.net mvc
posted

hello,

i have a fonction to render my chart, i try to add drilldown possibilitie but i didn't work: 

        public void RenderPieChart(Information model, UltraChart ToRenderPieChart)
        {
            //var wert = model.werte;
            //var Von = model.DatumVon;
            var preset = new ControlChartTyp(PieChart);

            ToRenderPieChart.ChartType = ChartType.PieChart;
            ToRenderPieChart.Data.ZeroAligned = true;
            ToRenderPieChart.LoadPreset(preset.GetFilePath(), true);

            //Setting Chart Drilldown
            ToRenderPieChart.Drill.Enabled = true;
            DrillElement pieChartDD = new DrillElement();
            ToRenderPieChart.Drill.DrillElements = new DrillElement[] {pieChartDD };
            ToRenderPieChart.Drill.DrillElements[0].DrillDown = new ChartDrillDown(ToRenderPieChart);

            NumericSeries series = new NumericSeries() { Label = "Pie Chart" };

            series.Points.Add(new NumericDataPoint(2, "Anzeigenblatt", false));
            series.Points.Add(new NumericDataPoint(4, "Fachzeitschrift", false));
            series.Points.Add(new NumericDataPoint(6, "Kundenzeitschrift", false));
            series.Points.Add(new NumericDataPoint(1, "Nachrichtenagentur", false));
            series.Points.Add(new NumericDataPoint(4, "Internet-Publikation", false));
            series.Points.Add(new NumericDataPoint(3, "Publikumszeitschrift", false));
            series.Points.Add(new NumericDataPoint(3, "Supplement", false));
            series.Points.Add(new NumericDataPoint(70, "Tageszeitung", false));
            series.Points.Add(new NumericDataPoint(2, "TV-Sendung", false));
            series.Points.Add(new NumericDataPoint(5, "Wochenzeitung", false));

            ToRenderPieChart.Series.Add(series);
            ToRenderPieChart.PieChart.OthersCategoryPercent = 0;
            ToRenderPieChart.PieChart.Labels.Font = new System.Drawing.Font("arial", 5);
            ToRenderPieChart.Legend.SpanPercentage = 30;
            ToRenderPieChart.PieChart.ColumnIndex = -1;
        }
and i have a class ChartDrillDown implement like in http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/Chart_Drilldown.html and the event in this class. The Event ist not raise

 

Thank you very much for your help