Allows you to add a data source to a Line Chart, Histogram Chart, or SPC Bar Chart.
Syntax
object.AddDataSet bstrSourceName [bUseAnyway]
Properties
The AddDataSet method syntax has these parts:
Part |
Description |
object |
An object expression that evaluates to an object in the Applies To list. |
bstrSourceName |
String. The data source tag that you want to add to the chart as the dataset. |
bUseAnyway |
Variant. (Optional) Allows you to set an undefined object as the data source. The value should be True or False. True indicates a UseAnyway condition. If the data source does not exist and bUseAnyway is set to False, the AddDataSet method generates an error. The default for the bUseAnyway parameter is False. |
Return Value
Object – the dispatch pointer of the Dataset added to the chart.