Unable To Create Label For Chart Marked Zone

Thread is closed for posting
2 posts, 0 answers
  1. steve matheson
    steve matheson avatar
    28 posts
    Member since:
    Jul 2005

    Posted 08 Aug 2009 Link to this post

    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

  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 12 Aug 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top