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

bar chart labels

3 Answers 61 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
hab
Top achievements
Rank 1
hab asked on 31 Aug 2009, 09:51 AM
hi,

i have a regular bar type chart, for example - yAxis the grades and xAxis the Subjects.
each grade appear in label above the according bar.
i have two chartSeries each with a different color - by the skin.

is there any way to make the colors of the labels to be according the bars color?.
is it possible to do it from the skin file?.

any idea?

3 Answers, 1 is accepted

Sort by
0
Velin
Telerik team
answered on 02 Sep 2009, 07:36 AM
Hi hab,

You can easily change the foreground of the labels using code like this:
series.Appearance.TextAppearance.TextProperties.Color = Color.Black; 

Hope this helps.

Regards,
Velin
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
hab
Top achievements
Rank 1
answered on 02 Sep 2009, 05:06 PM
thanx for the answer.

i've tried this solution.. stil i get the color set by the skin..

is there any way to make the chart object render the color set from the code behind,
on other words, a way to override the color set by the skin file..
0
Velin
Telerik team
answered on 07 Sep 2009, 08:59 AM
Hello hab,

The code suggested in my previous answer should have worked fine for you, unless the property SkinsOverrideStyles of RadChart is not set to true. Could you please, verify that this property is is set to false during runtime.   

Best wishes,
Velin
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Chart (Obsolete)
Asked by
hab
Top achievements
Rank 1
Answers by
Velin
Telerik team
hab
Top achievements
Rank 1
Share this question
or