IShapeCollectionInsertChart Method (ChartType, Single, Single, Single, Single, Int32, Boolean)

Creates a new Chart and inserts it to the specified position in the collection.

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.11.0.0 (21.11)
Syntax
IChart InsertChart(
	ChartType type,
	float x,
	float y,
	float width,
	float height,
	int index,
	bool initWithSample
)

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.
index
Type: SystemInt32
Chart's position in the collection.
initWithSample
Type: SystemBoolean
If true then new chart will be initialized with sample series data and settings. If false then new chart will have no series and minimum settings. In this case chart creation will be more fast.

Return Value

Type: IChart
Created chart.
See Also