To reproduce: 1. Add RadChartView with drill down and two RadCheckBox on the form 2. Subscribe to the ToggleStateChanged event of RadCheckBox and set the IsVisible property to true/false 3. In handler of DrillDown event set the series`s IsVisible property to be equal to checkbox`s Checked property 4. In few cases the series are not visible when changing the IsVisible property and view. Unfortunately due to the nature of the issue we cannot provide a workaround for it.
To reproduce: - Subscribe to the SelectedPointChanged event and show a dialog in it. - Start the chart and zoom in. Select a point, close the dialog and select a point again. Workaround: class MyChartSelectionController : ChartSelectionController { protected override ActionResult OnMouseDown(MouseEventArgs e) { //return base.OnMouseDown(e); return Controller.Empty; } protected override ActionResult OnMouseUp(MouseEventArgs e) { if (!this.AllowSelect || this.SelectionMode == ChartSelectionMode.None) { return base.OnMouseUp(e); } DataPoint oldDataPoint = SelectedPoint; DataPoint newDataPoint = null; ChartSeries oldSeries = SelectedSeries; ChartSeries newSeries = null; DataPoint point = null; foreach (ChartSeries series in this.Area.Series) { point = series.HitTest(e.X, e.Y); if (point != null) { newDataPoint = point; newSeries = series; break; } } if (point == null) { return base.OnMouseUp(e); } ChartViewSelectedPointChangingEventArgs cancelArgs = new ChartViewSelectedPointChangingEventArgs(oldDataPoint, newDataPoint, oldSeries, newSeries, this.SelectionMode); OnSelectedPointChanging(cancelArgs); if (cancelArgs.Cancel == true) { return base.OnMouseUp(e); } if (oldDataPoint == newDataPoint) { oldDataPoint.IsSelected = !oldDataPoint.IsSelected; newDataPoint = null; SelectedPoint = null; } else { if (this.SelectionMode == ChartSelectionMode.SingleDataPoint && oldDataPoint != null) { oldDataPoint.IsSelected = false; } this.SelectedPoint = newDataPoint; this.SelectedPoint.IsSelected = !SelectedPoint.IsSelected; } ChartViewSelectedPointChangedEventArgs changedArgs = new ChartViewSelectedPointChangedEventArgs(oldDataPoint, newDataPoint, oldSeries, newSeries, this.SelectionMode); OnSelectedPointChanged(changedArgs); return base.OnMouseUp(e); } }
To reproduce: - Add a pie chart using the property builder and set the palette as well. Workaround - Set the palette in code: this.radChartView1.Area.View.Palette = KnownPalette.Metro;
To reproduce: radChartView1.AreaType = ChartAreaType.Pie; PieSeries series = new PieSeries(); series.DataPoints.Add(new PieDataPoint(50, "Germany")); series.Children.LastOrDefault().BackColor = Color.Red; series.Children.LastOrDefault().BorderColor = Color.Green; series.DataPoints.Add(new PieDataPoint(70, "United States")); series.Children.LastOrDefault().BackColor = Color.Green; series.Children.LastOrDefault().BorderColor = Color.Red; series.DataPoints.Add(new PieDataPoint(40, "France")); series.Children.LastOrDefault().BackColor = Color.Blue; series.Children.LastOrDefault().BorderColor = Color.Yellow; series.DataPoints.Add(new PieDataPoint(25, "United Kingdom")); series.Children.LastOrDefault().BackColor = Color.Yellow; series.Children.LastOrDefault().BorderColor = Color.Blue; this.radChartView1.Series.Add(series); radChartView1.ShowLegend = true; Workaround: for (int i = 0; i < radChartView1.ChartElement.LegendElement.Items.Count; i++) { PieDataPoint point = ((PieDataPoint)series.DataPoints[i]); radChartView1.ChartElement.LegendElement.Items[i].Element.BackColor = Color.Red; radChartView1.ChartElement.LegendElement.Items[i].Element.BorderColor = Color.Yellow; }
To reproduce: this.radChartView1.AreaType = ChartAreaType.Pie; PieSeries series = new PieSeries(); series.DataPoints.Add(new PieDataPoint(50, "Germany")); series.DataPoints.Add(new PieDataPoint(70, "United States")); series.DataPoints.Add(new PieDataPoint(40, "France")); for (int i = 0; i < 50; i++) { series.DataPoints.Add(new PieDataPoint(1, "Item " + i)); } series.ShowLabels = true; series.DrawLinesToLabels = true; this.radChartView1.Series.Add(series); this.radChartView1.ShowSmartLabels = true;
There are three ways in which null values can be handled: 1 . Zero. When this option is used, each null value is replaced with a zero. The data entry is not removed from the data collection. Only its original null/empty value is replaced with zero. 2 . Gap. This option visually removes the regions for each set of empty(null) points. The data entry is not removed from the data collection. Essentially, it connects the points neighboring the null point (or the collection of empty values). 3 . Drop - this option clips, or visually removes each section/segment, corresponding to a set of empty points/values.
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; } }
How to reproduce: public partial class Form1 : Form { public Form1() { InitializeComponent(); this.radChartView1.AreaType = ChartAreaType.Pie; PieSeries series = new PieSeries(); series.DataPoints.Add(new PieDataPoint(0, "Germany")); series.DataPoints.Add(new PieDataPoint(0, "United States")); series.DataPoints.Add(new PieDataPoint(0, "France")); series.DataPoints.Add(new PieDataPoint(0, "United Kingdom")); series.ShowLabels = true; this.radChartView1.Series.Add(series); this.radChartView1.ShowSmartLabels = true; } } Workaround: this.radChartView1.ShowSmartLabels = false;
Workaround: create a custom BarSeriesDrawPart and override the Draw method public class CustomBarSeriesDrawPart : BarSeriesDrawPart { public CustomBarSeriesDrawPart(BarSeries series, IChartRenderer renderer) : base(series, renderer) { } public override void Draw() { bool shouldDraw = IsElementValid(); if (shouldDraw) { Graphics graphics = this.Renderer.Surface as Graphics; GraphicsState state = graphics.Save(); Region clipRegion = graphics.Clip; CartesianSeries cartesianSeries = this.Element as CartesianSeries; if (cartesianSeries != null) { FieldInfo fi = cartesianSeries.GetType().GetField("area", BindingFlags.NonPublic | BindingFlags.Instance); CartesianArea area = fi.GetValue(cartesianSeries) as CartesianArea; MethodInfo mi = area.GetType().GetMethod("GetCartesianClipRect", BindingFlags.NonPublic | BindingFlags.Instance); mi.Invoke(area, null); RectangleF clipRect = (RectangleF)mi.Invoke(area, null); graphics.Clip = new Region(clipRect); } DrawSeriesParts(); graphics.Clip = clipRegion; graphics.Restore(state); } } }
when overlay a radlabel on a radchartview, chartview constantly refreshes label backcolor set to transparent tried to recreate this with a sample cs project but wouldn't reproduce! video has two instances of the same user control on the form notice that right hand instance does not update when radlabel is added attached is video of it working fine, then add label ontop , then see it misbehaving with fast refresh flicker! not only that it also prevents other items in the user controls from updating and the other user control on the form from updating have attached sample c# project (but cant reproduce)
The trackball does not work well when charting the dxf cad drawing of a circle or more complex shape would be better for it to have cross hair mode, as single point mode does not work (as it picks up a massive array of x,y points in the tooltip, making it unmanageable) Showtrackball = true SelectionMode = SingleDataPoint
RadChartView Control: corrupts legend when set Series IsVisibleInLegend = False in Properties at design time Simply added a few extra series , and then tried to turn them off in the legend screen shot shows too many legent items for the series in the properties window
By making IsVisibleInLegend = false at design time, get exception during compile (see attached) and also exceptions at run time Aim: I need to be able to hide certain chart text from legend
Having issues withVS2013 & 2015 Q1 Winforms RadChartView control 1. WYSIWYG in design time does not refresh properly after changing axis collection parameters, unless close and reopen the parent winform or custom control 2. by changing an axis collection parameter , seem to end up with multiple extra axes series (originally had axisX, AxisY, and after a minor param change ended up with axis 0 thru 5 (6 in total) and all series where now using axis4 & axis5 not my original axis? 3. I can't see to toggle display on/off of series in winforms via the legend, yet in wpf web it is possible? will this feature be added later? attached is example of WYSIWYG not working improvement Suggestions: I would love to have a major and minor grid (similar to ref: http://thumbs.dreamstime.com/z/screen-digital-oscilloscope-two-types-signal-33269502.jpg) as most of my work is measurement and scientific in nature. I would like to ensure the ratio of X-Y is fixed so that on resize of the control the grid does not skew or stretch and I loose 1:1 aspect ratio I look forward to your feedback ;)