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:
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.
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.