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

Chart won't paint MarkedZone borders

1 Answer 64 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Aaron Abdis
Top achievements
Rank 1
Aaron Abdis asked on 19 Feb 2010, 03:20 AM
Hi all... I am trying to paint borders on marked zones, and leave the fills empty, to basically just show the threshold borders (max and min) for my series.

I am creating the marked zones programatically, and it is shading my graph, but it won't paint the borders, and I can't tell what I'm doing wrong. Here is my code:

        With chart.PlotArea 
            .MarkedZones.Clear() 
            Dim mz As TC.ChartMarkedZone 
            For Each dr As DataRow In Thresholds.Rows 
                mz = New TC.ChartMarkedZone(CStr(dr("NAME"))) 
                With mz 
                    .ValueStartY = dr.NullOf("MINVAL", min) 
                    .ValueEndY = dr.NullOf("MAXVAL", max) 
 
                    .Appearance.Border.Width = 2 
                    .Appearance.Border.Color = Drawing.Color.Red 
                    .Appearance.Border.PenStyle = Drawing.Drawing2D.DashStyle.Solid 
                    .Appearance.Border.Visible = True 
 
                    .Label.TextBlock.Text = .Name 
                    .Label.TextBlock.Visible = True 
 
                    .Visible = True 
                End With 
                .MarkedZones.Add(mz) 
            Next 
        End With 

And here is a the image that is being rendered. As you can see, it is adding the zones, and adding the labels, but it is refusing to paint the borders. (Ultimately they'd have different colors, but just all Red for now for testing.

generated output image

I am using version 2009.03.1208.35.

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 23 Feb 2010, 08:21 AM
Hello Aaron Abdis,

I did test this scenario and the chart painted the red borders for me. A possible reason for not painting them could be RadChart.SkinsOverrideStyles property set to true. In this case, the settings from the skin will be used. Please, make sure this property is not set to true.

Regards,
Ves
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Chart (Obsolete)
Asked by
Aaron Abdis
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or