'Declaration
Function AddChart( _ Optional ByVal chartType As ChartType, _ Optional ByVal left As Double, _ Optional ByVal top As Double, _ Optional ByVal width As Double, _ Optional ByVal height As Double, _ Optional ByVal newLayout As Boolean _ ) As IShape
Parameters
- chartType
- The type of chart.
- left
- The position, in pixels, of the left edge of the chart, relative to the anchor.
- top
- The position, in pixels, of the top edge of the chart, relative to the anchor.
- width
- The width, in pixels, of the chart.
- height
- The height, in pixels, of the chart.
- newLayout
- If newLayout is
true
, the chart is inserted by using the new dynamic formatting rules (Title is on, and Legend is on only if there are multiple series).
Return Value
The IShape object represents the new chart.