When setting the border color of the axis the labels are showing a border with the same color. The color is inherited from the axis element. One should be able to easily disable this, or it should not happen.
How to reproduce:
public partial class RadForm1 : Telerik.WinControls.UI.RadForm
{
LineSeries lineSeries;
public RadForm1()
{
InitializeComponent();
this.lineSeries = new LineSeries();
this.lineSeries.DataPoints.Add(new CategoricalDataPoint(20, "Jan"));
this.lineSeries.DataPoints.Add(new CategoricalDataPoint(22, "Apr"));
this.lineSeries.DataPoints.Add(new CategoricalDataPoint(25, "Jul"));
this.lineSeries.DataPoints.Add(new CategoricalDataPoint(19, "Oct"));
this.radChartView1.Series.Add(this.lineSeries);
this.lineSeries.HorizontalAxis.BorderColor = Color.Green;
this.lineSeries.VerticalAxis.BorderColor = Color.Blue;
}
}
Workaround: iterate each of the axis labels and set their border color to Transparent
public partial class RadForm1 : Telerik.WinControls.UI.RadForm
{
LineSeries lineSeries;
public RadForm1()
{
InitializeComponent();
this.lineSeries = new LineSeries();
this.lineSeries.DataPoints.Add(new CategoricalDataPoint(20, "Jan"));
this.lineSeries.DataPoints.Add(new CategoricalDataPoint(22, "Apr"));
this.lineSeries.DataPoints.Add(new CategoricalDataPoint(25, "Jul"));
this.lineSeries.DataPoints.Add(new CategoricalDataPoint(19, "Oct"));
this.radChartView1.Series.Add(this.lineSeries);
this.lineSeries.HorizontalAxis.BorderColor = Color.Green;
this.lineSeries.VerticalAxis.BorderColor = Color.Blue;
}
protected override void OnShown(EventArgs e)
{
base.OnShown(e);
foreach (var item in this.lineSeries.VerticalAxis.Children)
{
AxisLabelElement label = item as AxisLabelElement;
if (label != null)
{
label.BorderColor = Color.Transparent;
}
}
foreach (var item in this.lineSeries.HorizontalAxis.Children)
{
AxisLabelElement label = item as AxisLabelElement;
if (label != null)
{
label.BorderColor = Color.Transparent;
}
}
}
}