Chart.SetSourceData Method
Sets the source data range for the chart.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Sub SetSourceData ( _
Source As String, _
PlotBy As Object _
)
'Usage
Dim instance As Chart
Dim Source As String
Dim PlotBy As Object
instance.SetSourceData(Source, PlotBy)
void SetSourceData(
string Source,
Object PlotBy
)
Parameters
- Source
Type: System.String
The address of the chart data range that contains the source data.
- PlotBy
Type: System.Object
Specifies the way the data will be plotted. Can be either of the following XlRowCol constants: xlColumns or xlRows.