Best path to a chart like this?

2 posts, 0 answers
  1. Lee
    Lee avatar
    1 posts
    Member since:
    Apr 2012

    Posted 13 Sep Link to this post

    I need to create a chart like the one I attached. I'm not sure what the best way to do this might be, I may have up to 40 different lines series on the chart at once, so I'm not sure what is the most direct way to get this type of chart, a stacked set of individual charts or some sort of dynamic chart using a category to group the data on the X axis?  Any ideas or examples?



  2. Ves
    Ves avatar
    2914 posts

    Posted 18 Sep Link to this post

    Hi Lee,

    The chart supports multiple series, so all you need to do is add them to the Series collection. Here is an example of adding two series to the same chart, the implementation would be identical for LineSeries. To show the point markers, you will need to provide a DataTemplate with an ellipse e.g.

    <DataTemplate x:Key="chartPoint">
        <Ellipse Width="8" Height="8" Fill="Black"></Ellipse>

    and assign it to series' PointTemplate property.

    For so many series, it is likely that you will need to provide distinct colors for each of them. The Custom  Palette feature would come in handy in this case.

    An important note here -- you need to make sure all the series have the same values for items' categories -- see the Categorical Series help topic for more details.

    In addition, it is possible to generate the series dynamically -- please, see the Dynamic Series chapter in our online help for different scenarios and how they are covered in RadCartesianChart.

    Best regards,
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top