Sample usage of SChartActivityIndicator


#1

Hello,

Can someone please provide a sample on how to use the default SChartActivityIndicator?

I have I know i need to set the following:

[chart.loadDataInBackground = YES];

but not sure how to call the default loading indictor to startAnimating

Thanks,
Greg


#2

Hi Gsvitak,

The indicator should start on its own, whilst the chart is loading. However, your issue might be that the default indicator is white, so it will be hard to see unless you have a dark chart background! Try changing the indicator to be a gray activity indicator:

_chart.loadingIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];

JanĀ