LabelAppearance ForeColor

3 posts, 0 answers
  1. Chuck Thompson
    Chuck Thompson avatar
    6 posts
    Member since:
    Oct 2009

    Posted 05 Nov 2009 Link to this post

    I have a bar graph and I need to change the color of the label in the series.
    ||||||||||||||||||||||||||||||||||||||||||||||||||||28
    ||||||||||||||||||||||||||14
    Say it looks like this, I want to change the forecolor of the "28" and "14" to be white as the background is a dark blue.
    Is this posible andif so how?
  2. Robert
    Robert avatar
    82 posts
    Member since:
    Jun 2009

    Posted 09 Nov 2009 Link to this post

    Hello Chuck,

    You should be able to adjust the series item labels through its TextAppearance property. You can access this property through the property window in Visual Studio here:
    Data -> Series -> [series name]-> Appearance -> Appearance ->TextAppearance

    I recommend checking out this help topic if you have any other questions about how to style something in the RadChart:

    - Robert
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 10 Nov 2009 Link to this post

    Hi Chuck,

    Just as an addition to Robert's post, I would like to add that the same thing is easily done through code-behind, accessing the same chain of properties. If you need to set color based on value, this can be done by handling the BeforeLayout event.

    Best,
    Evtim
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top