How to change color of legend item of pie chart

2 posts, 0 answers
  1. Gomathi
    Gomathi avatar
    6 posts
    Member since:
    Jan 2011

    Posted 20 Jul 2011 Link to this post

    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!!!

  2. Sia
    Admin
    Sia avatar
    756 posts

    Posted 22 Jul 2011 Link to this post

    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!

Back to Top