Chart won't paint MarkedZone borders

Thread is closed for posting
2 posts, 0 answers
  1. Aaron Abdis
    Aaron Abdis avatar
    26 posts
    Member since:
    Mar 2005

    Posted 18 Feb 2010 Link to this post

    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 
                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 
            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.
  2. Ves
    Ves avatar
    2926 posts

    Posted 23 Feb 2010 Link to this post

    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.

    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.
Back to Top