ShapeCollectionAddChart Method (ChartType, Single, Single, Single, Single)

Creates a new Chart, initialize it with sample series data and settings and adds it to the end of the collection.

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 20.3.0.0 (20.3)
Syntax
public IChart AddChart(
	ChartType type,
	float x,
	float y,
	float width,
	float height
)

Parameters

type
Type: Aspose.Slides.ChartsChartType
Type of chart.
x
Type: SystemSingle
X coordinate of a new chart.
y
Type: SystemSingle
Y coordinate of a new chart.
width
Type: SystemSingle
Chart's width.
height
Type: SystemSingle
Chart's height.

Return Value

Type: IChart
Created chart.

Implements

IShapeCollectionAddChart(ChartType, Single, Single, Single, Single)
See Also