AddChart

AddChart(ChartType, float, float, float, float)

Creates a new chart, initializes it with sample series data and settings, and adds it to the end of the shape collection.

public IChart AddChart(ChartType type, float x, float y, float width, float height)
ParameterTypeDescription
typeChartTypeThe type of chart to add.
xSingleThe x-coordinate of the new chart, in points.
ySingleThe y-coordinate of the new chart, in points.
widthSingleThe width of the chart, in points.
heightSingleThe height of the chart, in points.

Return Value

The newly created IChart.

See Also


AddChart(ChartType, float, float, float, float, bool)

Creates a new chart, initializes it with sample series data and settings, and adds it to the end of the shape collection.

public IChart AddChart(ChartType type, float x, float y, float width, float height, 
    bool initWithSample)
ParameterTypeDescription
typeChartTypeThe type of chart to add.
xSingleThe x-coordinate of the new chart, in points.
ySingleThe y-coordinate of the new chart, in points.
widthSingleThe width of the chart, in points.
heightSingleThe height of the chart, in points.
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