Stacking only certain series on a chart

4 posts, 0 answers
  1. Clyde
    Clyde avatar
    7 posts
    Member since:
    Dec 2015

    Posted 19 May Link to this post

    I have a chart with 3 series.  I want series 1 to not be stacked but series 2 and 3 to be stacked.  How can I accomplish this?  I noticed that there is a stack attribute for the series

    http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#configuration-series.stack

    However, the lower print says that Stack settings of the first series are applied to the rest of the series.  How can I accomplish what I need?

    Regards

  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 23 May Link to this post

    Hello,

    The wording in the documentation is a bit misleading, I'll update it to say "Stack settings of the first series are inherited as a default value by the rest of the series, in case they are not overridden."

    As for your specific case you can use stack.group to place the different series in groups.

    I hope this helps.

    Regards,
    T. Tsonev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Clyde
    Clyde avatar
    7 posts
    Member since:
    Dec 2015

    Posted 23 May in reply to T. Tsonev Link to this post

    The reply shows a group of bars.  I need area charts.  So the layout is as such.  series2 and series3, which are stacked, will sit in front of series1.  The group option doesn't seem to get me what I need.  
  5. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 25 May Link to this post

    Hello,

    I can confirm, grouping only works for bar and column charts, as noted in the documentation.
    The area charts can either be all stacked or not.

    Please, cast your vote for this feature on our UserVoice portal so we can prioritize accordingly.

    Regards,
    T. Tsonev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready