bar chart labels

Thread is closed for posting
4 posts, 0 answers
  1. hab
    hab avatar
    4 posts
    Member since:
    Jan 2009

    Posted 31 Aug 2009 Link to this post

    hi,

    i have a regular bar type chart, for example - yAxis the grades and xAxis the Subjects.
    each grade appear in label above the according bar.
    i have two chartSeries each with a different color - by the skin.

    is there any way to make the colors of the labels to be according the bars color?.
    is it possible to do it from the skin file?.

    any idea?
  2. Velin
    Admin
    Velin avatar
    391 posts

    Posted 02 Sep 2009 Link to this post

    Hi hab,

    You can easily change the foreground of the labels using code like this:
    series.Appearance.TextAppearance.TextProperties.Color = Color.Black; 

    Hope this helps.

    Regards,
    Velin
    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.
  3. hab
    hab avatar
    4 posts
    Member since:
    Jan 2009

    Posted 02 Sep 2009 Link to this post

    thanx for the answer.

    i've tried this solution.. stil i get the color set by the skin..

    is there any way to make the chart object render the color set from the code behind,
    on other words, a way to override the color set by the skin file..
  4. Velin
    Admin
    Velin avatar
    391 posts

    Posted 07 Sep 2009 Link to this post

    Hello hab,

    The code suggested in my previous answer should have worked fine for you, unless the property SkinsOverrideStyles of RadChart is not set to true. Could you please, verify that this property is is set to false during runtime.   

    Best wishes,
    Velin
    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