Approved
Last Updated: 04 Jan 2017 07:22 by ADMIN
ADMIN
Petar Marchev
Created on: 22 Jun 2016 08:38
Category: ChartView
Type: Bug Report
1
ChartView: Removing a series when using SmartLabelsMode for the horizontal axis causes the axis to have only one label
In a multiple series scenario if one series gets removed, an internal axis flag is incorrectly reset resulting in the horizontal axis displaying only one label when SmartLabelsMode is used. One way to work-around this is to add an empty dummy series after removing a real series:

            this.chart1.Series.Remove(EmptyDummySeries);
            if (this.chart1.Series.Count > 0)
            {
                this.chart1.Series.RemoveAt(this.chart1.Series.Count - 1);
                if (this.chart1.Series.Count > 0)
                {
                    this.chart1.Series.Add(EmptyDummySeries);
                }
            }
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments