Equivalent to dragging data from a worksheet onto a chart. Adds data to an existing chart.
Syntax
CHART.ADD.DATA(ref, rowcol, titles, categories, replace, series)
Ref is the cell reference for the data that is being dragged onto the chart
Rowcol is the number 1 or 2 and specifies whether the values corresponding to a particular data series are in rows or columns. Enter 1 for rows or 2 for columns.
Titles is a logical value corresponding to the Series Names In First Column check box (or First Row, depending on the value of rowcol) in the Paste Special dialog box.
Categories is a logical value corresponding to the Categories (X Labels) In First Row (or First Column, depending on the value of rowcol) check box in the Paste Special dialog box.
Replace is a logical value corresponding to the Replace Existing Categories check box in the Paste Special dialog box.
Series is a number specifying how cells are added to a chart.
Series Added as
1 New series
2 New point(s)
Related Functions
List of Command-Equivalent Functions