This example collects data for display in third-party visualization code using an chart data object of strings, arrays, and dictionaries. When a user makes a selection from a list of locations, the chart data object and user interface update with data about the selected location.
The following overview describes this functionality in the iOS example application:
An object of strings, arrays, and dictionaries is defined in BIRTChartData.h. This object contains values associated with the user selection.
User makes a selection from the list of locations and triggers an update to the chart data object. The user selection calls updateView.
The updateView function creates a new BIRTChartData object and loads it with data about the selected location.
The BIRTChartData object is passed to each of the chart view controllers for display, as shown in the following code:
The following Objective-C code shows the BIRTChartData object used in a chart: