Hi,
I have a stacked column series and I want to animate changes to the values. I have succesfully done this for IGColumnSeries by setting animateSeriesWhenAxisRangeChanges and transitionDuration and setting the data property of the datasource whenever there are changes. However, I cant do the same with a stacked series as the data property of IGStackedSeriesDataSourceHelper is readonly. Here is my code
IGStackedSeriesBase *stackedSeries = (IGStackedSeriesBase *)[self.barchart findSeriesByKey:kVisitTypeSereisKey]; IGStackedSeriesDataSourceHelper *datasource = (IGStackedSeriesDataSourceHelper *)stackedSeries.dataSource; datasource = [[IGStackedSeriesDataSourceHelper alloc] initWithData:data fields:stackedColumnFields labelPath:seriesLabelPath]; if (!stackedSeries) { stackedSeries = [self.barchart addStackedSeriesForType:[IGStackedColumnSeries class] usingKey:kVisitTypeSereisKey withDataSource:datasource firstAxisKey:XAIXS_KEY secondAxisKey:YAXIS_KEY]; stackedSeries.transitionDuration = CHART_ANIMATION_DURATION; } stackedSeries.dataSource = datasource;
Thanks,
Aniruddh
Stacked charts currently do not support animations with data changes. (Reference)
If this is a feature you'd like to see in a future release, please post your idea to our ideas page.