This is a migrated thread and some comments may be shown as answers.

CombineMode

1 Answer 53 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jon
Top achievements
Rank 1
Jon asked on 10 Feb 2014, 08:38 PM
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

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 11 Feb 2014, 08:51 AM
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:

http://docs.telerik.com/devtools/ios/chart/series/bar
http://docs.telerik.com/devtools/ios/chart/series/column
http://docs.telerik.com/devtools/ios/chart/series/area

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.

Regards,
Jack
Telerik
 

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).

 
Tags
General Discussion
Asked by
Jon
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or