StackedBar with Q3 2009 Silverlight Controls

3 posts, 1 answers
  1. Pierre-François
    Pierre-François avatar
    12 posts
    Member since:
    Mar 2009

    Posted 12 Nov 2009 Link to this post

    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. Answer
    Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 17 Nov 2009 Link to this post

    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.
  3. Pierre-François
    Pierre-François avatar
    12 posts
    Member since:
    Mar 2009

    Posted 17 Nov 2009 Link to this post

    Thank you for your reply Vladimir. It works fine.
Back to Top