Appending Chart Data
To request new data from the Info application server and append it to existing data, if any, in the chart, use this chart object method:
- rdAppendChartData([requestParams], maxVisiblePoints)
where requestParams is:
- An optional JavaScript object,
- Provided to the report definition as Request variables when the function is called,
- Where the property name is the Request variable name and the property value is Request variable value.
and maxVisiblePoints is:
- A positive integer,
- The threshold of total chart data points. The chart will delete old data points if the number of total points is greater than this value.
var requestParams = {};
requestParams.OrderDate = "01/01/2015";
requestParams.ProductCategory = "Seafood";
myChartObject.rdUpdateChartData(requestParams, 100);
See Updating Chart Data for an explanation of how the requestParams can be used as Request tokens in retrieving data.