This is a migrated thread and some comments may be shown as answers.

BarSeries with two different colors based on X value

1 Answer 49 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Jake
Top achievements
Rank 1
Jake asked on 25 Oct 2011, 05:08 PM
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

1 Answer, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 28 Oct 2011, 11:55 AM
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 >>
Tags
Chart
Asked by
Jake
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Share this question
or