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

StackedBar with Q3 2009 Silverlight Controls

2 Answers 40 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Pierre-François
Top achievements
Rank 1
Pierre-François asked on 12 Nov 2009, 01:02 PM
Hi,

I'm evaluating Q3 2009 Silverlight Controls and I can't find an example for my need.
I'm using MS .Net Ria Services, connected to a database view. No problem to retrieve the data nor to bind ItemSource for the RadChart. I have a great Chart, What I need and don't understand is as follow. What I receive from the DomainDataSource is :
    - Month (my X-Axis)
    - Value (my Y-Axis)
    - ID_SOC (values 1 and 2)

How to tell (in XAML) that I want red bars when ID_SOC = 1 and blue bars when ID_SOC = 2 ?

Thanks in advance for your help
Pierre

2 Answers, 1 is accepted

Sort by
0
Accepted
Vladimir Milev
Telerik team
answered on 17 Nov 2009, 07:22 AM
Hello Pierre-François,

You can use our new grouping and aggregation series to split the data in two series based on the ID_SOC value.

Check this example: http://demos.telerik.com/silverlight/#Chart/Aggregates,
this blog post: http://blogs.telerik.com/vladimirmilev/posts/09-09-18/radchart_for_sl_wpf_data_grouping_and_aggregation.aspx,
and this help article: http://www.telerik.com/help/silverlight/radchart-features-grouping-and-aggregation.html

These should get you started. Don't hesitate to write back if anything in those resources is not clear.

Greetings,
Vladimir Milev
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.
0
Pierre-François
Top achievements
Rank 1
answered on 17 Nov 2009, 10:01 AM
Thank you for your reply Vladimir. It works fine.
Tags
Chart
Asked by
Pierre-François
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Pierre-François
Top achievements
Rank 1
Share this question
or