How to Set the Series Item Label Text Color Programmatically

Thread is closed for posting
4 posts, 0 answers
  1. briankb
    briankb avatar
    92 posts
    Member since:
    Feb 2004

    Posted 21 Aug 2010 Link to this post

    I need to change the Series Item Label text font, size, and color. How can I do this programmatically?

  2. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 25 Aug 2010 Link to this post

    Hi briankb,

    Here is an example:

    RadChart1.Series[0].Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("Arial", 12);
    RadChart1.Series[0].Appearance.TextAppearance.TextProperties.Color = Color.Red;

    Best regards,
    Ves
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. D
    D avatar
    3 posts
    Member since:
    Mar 2011

    Posted 18 Apr 2011 Link to this post

    this (specifically, the " = Color.Red;" doesn't seem to work any more)...

    RadChart1.Series[0].Appearance.TextAppearance.TextProperties.Color = Color.Red;
  4. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 21 Apr 2011 Link to this post

    Hi,

    I just checked it and it works as expected for me. Is there anything specific in your project?

    Best regards,
    Ves
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top