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

[Solved] How to change color of legend item of pie chart

1 Answer 136 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gomathi
Top achievements
Rank 1
Gomathi asked on 20 Jul 2011, 05:42 AM
Hi,

    How to change color of legend item color in radchart?
I have tried with style below style resource

 

 

<Style x:Key="ChartLegendItemStyle" TargetType="telerik:ChartLegendItem">

 

 

 

<Setter Property="Foreground" Value="Blue" />

 

 

 

</Style>

 


but its returning below error

"Invalid attribute value telerik:ChartLegendItem for property TargetType. [Line: 24 Position: 64]"

Help me to correct this error.

Thanks in advance!!!

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 22 Jul 2011, 11:43 AM
Hello Gomathi,

What is the name-space mapping that you use in your application?

telerik should be:
xmlns:telerik="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting"
or

Best wishes,
Sia
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Chart
Asked by
Gomathi
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or