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

Series alignment issue

1 Answer 38 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 06 May 2011, 01:00 AM

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

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 11 May 2011, 09:55 AM
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.

Tags
Chart (Obsolete)
Asked by
John
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or