AddDataSet Method Example
The following example adds a data set to an object named LineChart1 (a Line Chart). An undefined object can be accepted as the data source. (True indicates a UseAnyway condition.)
Dim objDS As Object
Set objDS = LineChart1.AddDataSet("Fix32.Fix.AI1.F_CV")
This next example adds a data set to an object named HistogramChart1 (a Histogram Chart). Be aware that only a Histogram block can be used with a HistogramChart object, and only the T_DATA field can be used with this block to show the data. (T_DATA is array of 16-bit integers. T_DATA is supported in the HistogramChart object, while T_DATA2 is not. T_DATA2 is an array of 32-bit integers.)
Dim objDS As Object
Set objDS = HistogramChart1.AddDataSet("Fix32.GCMSA01.HS1.T_DATA", True)