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

Unable To Create Label For Chart Marked Zone

1 Answer 74 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
steve matheson
Top achievements
Rank 2
steve matheson asked on 08 Aug 2009, 05:37 PM
I am using the Q1 2009 Chart in VB and have programatically created a marked zone line using this code

 

 

Dim goalline As Telerik.Charting.ChartMarkedZone = New Telerik.Charting.ChartMarkedZone

 


goalline.ValueStartY = 100 
        goalline.ValueEndY = 100 
        goalline.Appearance.Border.Width = 2 
        goalline.Appearance.Border.PenStyle = Drawing.Drawing2D.DashStyle.Dot  
        goalline.Appearance.Border.Color = Drawing.Color.Wheat  
        goalline.Label.TextBlock.Text = "goal"

RadChart1.PlotArea.MarkedZones.Add(goalline)

 
         

The marked zone line appears but no matter how I modify the label I cannot get anything to appear.
What is the correct method to produce a label for the marked zone?

steve matheson

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 12 Aug 2009, 07:07 AM
Hello Steve,

Unfortunately, MarkedZone labels can only exist within the marked zone and yours seem to be using only the border - no area. A possible workaround here would be to create another marked zone with transparent fill and with ValueStartY=100, ValueEndY=150. Then you can set its label.

Best regards,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Chart (Obsolete)
Asked by
steve matheson
Top achievements
Rank 2
Answers by
Ves
Telerik team
Share this question
or