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

font color and underline for Legend's text

1 Answer 86 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Taraman
Top achievements
Rank 1
Taraman asked on 20 Aug 2011, 01:38 PM
hi,
I need to assign a font color and underline for legend's Text in pie chart

thanks,
Mohamed Taraman

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 24 Aug 2011, 12:19 PM
Hello Taraman,

You can achieve this through our API or by applying the wanted values to the appropriate properties of the Legend through the Properties window by right-clicking on the Chart in Design View (as shown in the picture attached).
Meanwhile here is the sample code that you need:

<telerik:RadChart ID="MilestoneChart" AutoLayout="true" 
       <Legend>
        <TextBlock>
            <Appearance TextProperties-Color="BlueViolet" TextProperties-Font="Verdana, 8.25pt, style=Underline">
            </Appearance>
        </TextBlock>
    </Legend>
 </telerik:RadChart>

Kind regards,
Evgenia
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

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