Stack only specific Series

4 posts, 0 answers
  1. Mathias
    Mathias avatar
    3 posts
    Member since:
    Apr 2014

    Posted 03 Nov 2014 Link to this post

    Hi i have a chart where i have 3 series.

    The first series should be the total value (all requests) and the other 2 should be stacked (accepted / rejected requests).
    How is this possible?
    I can only get it working that all 3 series are stacked but thats not my goal.

    .SeriesDefaults(seriesDefaults =>
    seriesDefaults.Area().Line(line => line.Style(ChartAreaStyle.Smooth))
    )
    .Series(series =>
    {
    series.Area(Model.Requests).Name("Total requests").Stack(false);
    series.Area(Model.AcceptedRequests).Name("Accepted requests").Stack(true);
    series.Area(Model.RejectedRequests).Name("Rejected requests").Stack(true);
    })

    why is this not working?
  2. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 04 Nov 2014 Link to this post

    Hi Matthias,

    In this case you can use named stack bar chart like in this online example: http://demos.telerik.com/aspnet-mvc/Beta/bar-charts/grouped-stacked-bar

    Could you try this approach and tell me if it works for you?

    Regards,
    Hristo Germanov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Mathias
    Mathias avatar
    3 posts
    Member since:
    Apr 2014

    Posted 04 Nov 2014 in reply to Hristo Germanov Link to this post

    i resolved my problem by using column bar charts but i wanted to use area charts but it looks like this is not possible.
    But however line chart mixed with stacked column bar charts did the job also.

    series.Line(Model.Requests).Name("Requests").Style(ChartLineStyle.Smooth);
    series.Column(Model.AcceptedRequests).Name("Accepted").Stack(true).Color("green");
    series.Column(Model.UnhandledRequests).Name("Not handled").Stack(true).Color("yellow");
    series.Column(Model.RejectedRequests).Name("Rejected").Stack(true).Color("red");
  4. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 06 Nov 2014 Link to this post

    Hi Mathias,

    I confirm that there is no support for the area/line series.

    Please excuse us for the inconvenience.

    Regards,
    Hristo Germanov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top