InsertChart

InsertChart(ChartType, float, float, float, float, int)

Creates a new chart, initializes it with sample series data and settings, and inserts it into the shape collection at the specified index.

public IChart InsertChart(ChartType type, float x, float y, float width, float height, int index)
ParameterTypeDescription
typeChartTypeThe type of chart to create.
xSingleThe x-coordinate of the new chart, in points.
ySingleThe y-coordinate of the new chart, in points.
widthSingleThe width of the new chart, in points.
heightSingleThe height of the new chart, in points.
indexInt32The zero-based index at which to insert the new chart in the shape collection.

Return Value

The newly created IChart.

See Also


InsertChart(ChartType, float, float, float, float, int, bool)

Creates a new chart, initializes it with sample series data and settings, and inserts it into the shape collection at the specified index.

public IChart InsertChart(ChartType type, float x, float y, float width, float height, int index, 
    bool initWithSample)
ParameterTypeDescription
typeChartTypeThe type of chart to create.
xSingleThe x-coordinate of the new chart, in points.
ySingleThe y-coordinate of the new chart, in points.
widthSingleThe width of the new chart, in points.
heightSingleThe height of the new chart, in points.
indexInt32The zero-based index at which to insert the new chart in the shape collection.
initWithSampleBooleanTrue to initialize the new chart with sample series data and settings; false to create the chart with no series and only minimal settings, which makes creation faster.

Return Value

The newly created IChart.

See Also