Multiple areas in RadChartView

6 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    6 posts
    Member since:
    Feb 2016

    Posted 29 Feb 2016 Link to this post

    I've read in the docs that RadChart supports charts with multiple areas for its series. Is there any way to get something similar in RadChartView?

    In case it helps, what I'm trying to achieve is to "stack" vertically different series (candlestick, lines, bars) sharing one common horizontal axis but each with its individual vertical axis.

  2. Petar Marchev
    Admin
    Petar Marchev avatar
    1029 posts

    Posted 03 Mar 2016 Link to this post

    Hi Jonathan,

    Due to multiple reasons, we have decided not to implement multiple areas within a single chart. You can however put charts together and get the same results. The only major thing you need to take care of is to align the plot areas of the charts (at least I assume you would want to do that). You can get the code from this qsf demo, see the ChartViewUtilities static class.

    You can collapse the axes you do not want to get displayed and in case the horizontal data in the different series varies, you can bind the ranges of the collapsed horizontal axes to the ActualRange of the visible one.

    Let us know how it goes.

    Regards,
    Petar Marchev
    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
  3. Jason D
    Jason D avatar
    130 posts
    Member since:
    Jan 2011

    Posted 16 Jun Link to this post

    Is this still true? There are two images that appear to show multiple areas:

    https://www.telerik.com/products/wpf/chartview.aspx

    But I can't find anything in the documentation that explains how to do this.

  4. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2479 posts

    Posted 17 Jun Link to this post

    Hello Jason,

    The multiple series scenario shown on the ChartView's product page is different than the requirement Jonathan asks for. The one from the product page is supported. To achieve this, you can define multiple chart series in the Series collection of the chart control. If you need to stack the data, you can set the CombineMode of each series to Stack.

    To achieve the requirement from the original post of this forum, you can stack vertically multiple RadCartesianChart controls.

    Regards,
    Martin Ivanov
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
  5. Jason D
    Jason D avatar
    130 posts
    Member since:
    Jan 2011

    Posted 17 Jun in reply to Martin Ivanov Link to this post

    I was referring to the attached images. Are these just stacked charts? Multiple areas would be extremely useful. I use it for one of my existing charts and it's much better than trying to keep multiple charts in sync.

     

  6. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2479 posts

    Posted 22 Jun Link to this post

    Hello Jason,

    Yes, those are two RadCartesianChart controls stack one on top of the other. You can see this setup in the Zooming and Scrolling, Financial and Stock Series / Indicators examples from the WPF Demos application. 

    Regards,
    Martin Ivanov
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top