Completed
Last Updated: 25 Jun 2015 12:54 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 01 May 2015 06:16
Category: ChartView
Type: Bug Report
1
FIX. RadChartView - NullReferenceException when setting the ShowPanZoom property before the chart is populated with data
To reproduce:

public Form1()
{
    InitializeComponent();

    this.radChartView1.ShowPanZoom = true;
    Random rand = new Random();
    this.radChartView1.AreaType = ChartAreaType.Polar;
    for (int i = 0; i < 85; i++)
    {
        RadarLineSeries radarPointSeries = new RadarLineSeries();
        for (int j = 0; j < 8; j++)
        {
            radarPointSeries.DataPoints.Add(new CategoricalDataPoint(rand.Next(1, 100), "X" + j));
        }
        this.radChartView1.Series.Add(radarPointSeries);
    }
}

Workaround: set the ShowPanZoom property after the chart is populated with data.
0 comments