How do I create a chart and perform a minimal refresh to show updated scrolling data values using animation?
A chart may be created by subclassing ChartWithAxes or ChartWithoutAxes as the outermost structure using the preferred creation method. Once the data structures are setup (including dataset binding), the chart needs to be built into a device-independent output format termed as the ’GeneratedChartState’. The generated chart state includes rendering hints to optimize rendering speed when eventually rendered out to device-specific output formats. Hence, to summarize, the various stages are: A] Create the chart model B] Bind the dataset(s) C] Build the chart D] Render the chart Now, if the content of the datasets are altered, this may be reflected in the output by: C] Minimal re-building (using refresh) OR a full re-build (using build) and D] Re-rendering the chart … or simply… D] Re-rendering the chart The choice for picking one option over the other depends on the values contained in the updated dataset(s). If the min/max of all numeric values (for a value series dataset) on a value axis