Completed
Last Updated: 11 Apr 2019 10:16 by Dimitar
Release R2 2019 (LIB 2019.1.415)
Chris Ward
Created on: 20 Mar 2019 11:32
Category: UI for WinForms
Type: Bug Report
1
RadChartView: The CartesianPlotBandAnnotation is not painted correctly on an axis with scale breaks

How to reproduce:

LineSeries lineSeries = new LineSeries();
lineSeries.DataPoints.Add(new CategoricalDataPoint(6, "Harley"));
lineSeries.DataPoints.Add(new CategoricalDataPoint(4, "White"));
lineSeries.DataPoints.Add(new CategoricalDataPoint(7, "Smith"));
lineSeries.DataPoints.Add(new CategoricalDataPoint(5, "Jones"));
lineSeries.DataPoints.Add(new CategoricalDataPoint(3, "Marshall"));
lineSeries.DataPoints.Add(new CategoricalDataPoint(8, "Stevens"));
lineSeries.DataPoints.Add(new CategoricalDataPoint(7, "Brown"));
lineSeries.DataPoints.Add(new CategoricalDataPoint(10, "Carter"));
lineSeries.DataPoints.Add(new CategoricalDataPoint(4, "Bryant"));
lineSeries.DataPoints.Add(new CategoricalDataPoint(5, "Mora"));
lineSeries.DataPoints.Add(new CategoricalDataPoint(2, "Roy"));

CategoricalAxis continuousAxis = new CategoricalAxis();
continuousAxis.PlotMode = AxisPlotMode.OnTicks;
continuousAxis.LabelFormat = "{0:d}";
continuousAxis.ScaleBreakStyle = ScaleBreakStyle.Ragged;
lineSeries.HorizontalAxis = continuousAxis;
this.radChartView1.Series.Add(lineSeries);

//setup plot band
CartesianPlotBandAnnotation annotation1 = new CartesianPlotBandAnnotation();
annotation1.Axis = this.radChartView1.Axes[0] as CartesianAxis;
annotation1.From = "Bryant";
annotation1.To = "Mora";
annotation1.BackColor = Color.FromArgb(100, Color.LightBlue);
annotation1.BorderColor = Color.Black;
annotation1.BorderWidth = 1;
this.radChartView1.Annotations.Add(annotation1);

AxisScaleBreak scaleBreakItem = new AxisScaleBreak();
scaleBreakItem.Name = "Item1";
scaleBreakItem.From = "Smith";
scaleBreakItem.To = "Brown";

horizontalAxis.ScaleBreakSize = 50;
horizontalAxis.ScaleBreaks.Add(scaleBreakItem);

2 comments
Dimitar
Posted on: 11 Apr 2019 10:16
Hello, 
 
A Fix will be available in LIB Version 2019.1.415 scheduled for April 15th.

Regards,
Dimitar
ADMIN
Hristo
Posted on: 20 Mar 2019 12:26
Hello,

The issue is within the chart engine and due to its complexity, there is no suitable workaround. Initial investigation has already been made and the attached three screenshots demonstrate the current and desired behavior.

Regards,
Hristo
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.