Updating the plot


#1

I am developing a tabbed application and trying to use the data in one view to update the plot in the other view. I am using Objective c, for iOS.
Is there a way to update the plot by the user?

I managed to push the data from one view to the other, and I verified this using a button and a label to visualise this data, but I could not use it to update the plot. This is an essential part of my project, that is to allow the use to control the plot using the inputs.

Could anyone help me please.
Thanks!


#2

Hi Buzda,

Thanks for getting in touch!

Our chart only cares about the data your pass in to it via the chart’s data source property that implements the SChartDatasource protocol.

So once you have passed your data from one view controller to another you need pass this data to your chart by setting its data source.

If the new view has already been displayed you may need to call the “reloadData” & “redrawChart” methods on your ShinobiChart once the data source has been set.

If you have any questions please don’t hesitate to get in touch!

Kind regards,
Andrew Polkinghorn.