WithChartItems (AddDataPoint)
Adds a new data point to a series in the currently initialised chart definition.
Syntax
WithChartItems( InstructionType, SeriesName, XValue, YValue );
Parameters
| Parameter Name | Type | Description | Optional? | Default Value |
|---|---|---|---|---|
| InstructionType | Integer or String | Must be set to either the integer 21 or the string "AddDataPoint". | No | n/a |
| SeriesName | String | The name of the series that will contain the data point. | No | n/a |
| XValue | String | The X-axis value to set for the data point. This can be set to an empty string. | No | n/a |
| YValue | String | The Y-axis value to set for the data point. A comma-separated list can be used to add multiple values, if the chart type supports it. This can be set to an empty string. | No | n/a |
Output
If successful, the function will return True; otherwise, it will return False.