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

Label items color

1 Answer 32 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Adrian
Top achievements
Rank 1
Adrian asked on 28 Aug 2012, 05:36 PM
I'm trying to set the color on the label items to black instead of the light gray that seems to be the default. 
I've tried using :

  .PlotArea.XAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = Drawing.Color.Lime
        .PlotArea.XAxis.Appearance.LabelAppearance.FillStyle.MainColor = Drawing.Color.Lime
but this has only changed the color on the label's background and not the color of the text itself. 

How do I change the color of the actual text?

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 31 Aug 2012, 10:56 AM
Hello,

 You should set the color to the TextAppearance and not the LabelAppearance. For example:

RadChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = Color.Red;

Regards,
Evgenia
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Chart (Obsolete)
Asked by
Adrian
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or