Thread is closed for posting
2 posts, 0 answers
  1. Jon
    Jon avatar
    6 posts
    Member since:
    Aug 2013

    Posted 10 Feb 2014 Link to this post

    In the Win8 toolkit, there's a "combinemode" so that different types of series can be overlayed on the same chart.  Is there something similar in the iOS toolkit?

    Cheers, Jon
  2. Jack
    Jack avatar
    2333 posts

    Posted 11 Feb 2014 Link to this post

    Hi Jon,

    In case you want to present different chart series on the same chart, just add those series to the chart. This is demonstrated in Axis Types > Multiple axes example in our demo application.

    However, if you want to present series of the same type where each series is stacked over the previous one, you should use the stackInfo property. This is demonstrated in  Chart Types > Stacked Column chart and Chart Types > Stacked Area chart examples in our demo application. Consider also the following code:

    TKChartStackInfo *stackInfo = [[TKChartStackInfo alloc] initWithID:@(1) withStackMode:TKChartStackModeStack];
    TKChartColumnSeries *series1 = [[TKChartColumnSeries alloc] initWithItems:items];
    series1.stackInfo = stackInfo;
    [_chart addSeries:series1];
    TKChartColumnSeries *series2 = [[TKChartColumnSeries alloc] initWithItems:items];
    series2.stackInfo = stackInfo;
    [_chart addSeries:series2];

    You can find further information about stacking in bar/column and area series in our online documentation:

    In our Win8 toolkit there is a CombineMode property which servers a similar purpose. However, we found that the stackInfo property allows greater flexibility and it more adequately describes this scenario.

    I will be glad to help if you have further questions.


    Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Back to Top