Series alignment issue

Thread is closed for posting
2 posts, 0 answers
  1. John
    John avatar
    18 posts
    Member since:
    Oct 2010

    Posted 05 May 2011 Link to this post


    I can not figure out how to make my series text be aligned in the center and not the bottom - see image.  My code to create the line chart is below - I am using the Forest skin.

    RadChart1.Chart.Series.Clear()
      RadChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Font = New Font("Arial", 10)
      RadChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = Color.Black
      RadChart1.PlotArea.XAxis.AutoScale = False
      RadChart1.PlotArea.XAxis.AddItem("Jan")
      RadChart1.PlotArea.XAxis.AddItem("Feb")
      RadChart1.PlotArea.XAxis.AddItem("Mar")
      RadChart1.PlotArea.XAxis.AddItem("Apr")
      RadChart1.PlotArea.XAxis.AddItem("May")
      RadChart1.PlotArea.XAxis.AddItem("Jun")
      RadChart1.PlotArea.XAxis.AddItem("Jul")
      RadChart1.PlotArea.XAxis.AddItem("Aug")
      RadChart1.PlotArea.XAxis.AddItem("Sep")
      RadChart1.PlotArea.XAxis.AddItem("Oct")
      RadChart1.PlotArea.XAxis.AddItem("Nov")
      RadChart1.PlotArea.XAxis.AddItem("Dec")
      RadChart1.PlotArea.XAxis.LayoutMode = ChartAxisLayoutMode.Between
      Dim currentSeries As ChartSeries = New ChartSeries("Current", ChartSeriesType.Line)
      RadChart1.AddChartSeries(currentSeries)
      currentSeries.Appearance.Border.Color = Color.Black
      currentSeries.Appearance.ShowLabels = False
      Dim priorSeries As ChartSeries = New ChartSeries("Previous", ChartSeriesType.Line)
      RadChart1.AddChartSeries(priorSeries)
      priorSeries.Appearance.FillStyle.FillType = FillType.Solid
      priorSeries.Appearance.TextAppearance.TextProperties.Font = New Font("Verdana", 6)
      priorSeries.Appearance.TextAppearance.TextProperties.Color = Color.Black
      priorSeries.Appearance.LabelAppearance.Border.Color = Color.Black
      priorSeries.Appearance.LabelAppearance.FillStyle.MainColor = Color.IndianRed
      priorSeries.Appearance.LabelAppearance.FillStyle.FillType = FillType.Solid
  2. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 11 May 2011 Link to this post

    Hi John,

    Have you set any Position or Distance for the Labels in the mark-up as they should appear above their corresponding pointmarks by default?
    If not please open a formal support thread and send us a sample runnable project with this issue so that we can investigate it and provide you with more appropriate help.

    Regards,
    Evgenia
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top