AddChart

IShapeCollection.AddChart method (1 of 2)

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

public IChart AddChart(ChartType type, float x, float y, float width, float height)
Parameter Type Description
type ChartType Type of chart.
x Single X coordinate of a new chart.
y Single Y coordinate of a new chart.
width Single Chart’s width.
height Single Chart’s height.

Return Value

Created chart.

See Also


IShapeCollection.AddChart method (2 of 2)

Creates a new Chart and adds it to the end of the collection.

public IChart AddChart(ChartType type, float x, float y, float width, float height, 
    bool initWithSample)
Parameter Type Description
type ChartType Type of chart.
x Single X coordinate of a new chart.
y Single Y coordinate of a new chart.
width Single Chart’s width.
height Single Chart’s height.
initWithSample Boolean 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

Created chart.

See Also