BarSeries with two different colors based on X value

2 posts, 0 answers
  1. Jake
    Jake avatar
    7 posts
    Member since:
    Sep 2011

    Posted 25 Oct 2011 Link to this post

    Hello,

    I am trying to create a bar chart with red bars for the <=0 XValues and blue bars for the >0 XValues. I am using the MVVM pattern, so I cannot have a codebehind solution. There is only one data source and one series mapping, so I cannot create two different series and color them separately. I figured that telerik may have a built-in attribute in the XAML for this as it seems to be fairly common (at least on the Y-Axis), but I haven't been able to find anything.

    Thanks,
    Jake
  2. Peshito
    Admin
    Peshito avatar
    550 posts

    Posted 28 Oct 2011 Link to this post

    Hi Jake,

    I would suggest that you review our MVVM demo example with full source code, check out our MVVM help topic or use the CustomItemStyle delegate.

    Best wishes,
    Peshito
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top