font color and underline for Legend's text

Thread is closed for posting
2 posts, 0 answers
  1. Taraman
    Taraman avatar
    17 posts
    Member since:
    Aug 2010

    Posted 20 Aug 2011 Link to this post

    hi,
    I need to assign a font color and underline for legend's Text in pie chart

    thanks,
    Mohamed Taraman
  2. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 24 Aug 2011 Link to this post

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

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top