Completed
Last Updated: 10 Jul 2015 13:01 by ADMIN
ADMIN
Hristo
Created on: 02 Jul 2015 14:59
Category: ChartView
Type: Bug Report
0
FIX. RadChartView - Track ball not displayed if series with null values is added first to the Series collection
How to reproduce: 
public Form1()
        {
            InitializeComponent();

            DataTable source = new DataTable();
            source.Columns.Add("PreviousGoal", typeof(decimal));
            source.Columns.Add("CurrentCategory", typeof(System.DateTime));

            source.LoadDataRow(new object[] { null, "6/1/15" }, true);
            source.LoadDataRow(new object[] { null, "6/2/15" }, true);
            source.LoadDataRow(new object[] { null, "6/3/15" }, true);
            source.LoadDataRow(new object[] { null, "6/4/15" }, true);
            source.LoadDataRow(new object[] { null, "6/5/15" }, true);

            this.radChartView1.DataSource = source;

            SteplineSeries previousGoalSeries = new SteplineSeries();
            previousGoalSeries.DataSource = source;
            previousGoalSeries.ValueMember = "PreviousGoal";
            this.radChartView1.Series.Add(previousGoalSeries);

            SteplineSeries previousGoalSeries1 = new SteplineSeries();
            previousGoalSeries1.DataSource = source;
            previousGoalSeries1.ValueMember = "CurrentCategory";
            this.radChartView1.Series.Add(previousGoalSeries1);

            this.radChartView1.ShowTrackBall = true;

        }

Workaround: add the series with null values last
public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();

        DataTable source = new DataTable();
        source.Columns.Add("PreviousGoal", typeof(decimal));
        source.Columns.Add("CurrentCategory", typeof(System.DateTime));

        source.LoadDataRow(new object[] { null, "6/1/15" }, true);
        source.LoadDataRow(new object[] { null, "6/2/15" }, true);
        source.LoadDataRow(new object[] { null, "6/3/15" }, true);
        source.LoadDataRow(new object[] { null, "6/4/15" }, true);
        source.LoadDataRow(new object[] { null, "6/5/15" }, true);

        this.radChartView1.DataSource = source;
        SteplineSeries previousGoalSeries1 = new SteplineSeries();
        previousGoalSeries1.DataSource = source;
        previousGoalSeries1.ValueMember = "CurrentCategory";
        this.radChartView1.Series.Add(previousGoalSeries1);

        SteplineSeries previousGoalSeries = new SteplineSeries();
        previousGoalSeries.DataSource = source;
        previousGoalSeries.ValueMember = "PreviousGoal";
        this.radChartView1.Series.Add(previousGoalSeries);

        this.radChartView1.ShowTrackBall = true;
    }
}
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments