This is a migrated thread and some comments may be shown as answers.

Marked zone

1 Answer 72 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Goncalo
Top achievements
Rank 1
Goncalo asked on 19 Dec 2011, 11:07 AM
Hi,
I would like to know how can I add programmatically (in WPF)  a marked zone with a transparent infill and colored borders?
Whenever I set the Telerik.Windows.Controls.Charting.MarkedZone Background property to transparent and the BorderBush to blue (or any other colour) nothing is displayed.  I would like the chart to look like the one in the attachment.

Cheers

1 Answer, 1 is accepted

Sort by
0
Bartholomeo Rocca
Top achievements
Rank 1
answered on 21 Dec 2011, 10:53 AM
Hello Goncalo,

Try setting Stroke / StrokeThickness instead and it should work:
RadChart1.DefaultView.ChartArea.Annotations.Add(new MarkedZone(1, 2, 10, 15)
{
    Background = new SolidColorBrush(Colors.Transparent),
    Stroke = new SolidColorBrush(Colors.Blue),
    StrokeThickness = 1
});


Greetings,
Bart.
Tags
Chart
Asked by
Goncalo
Top achievements
Rank 1
Answers by
Bartholomeo Rocca
Top achievements
Rank 1
Share this question
or