InsertChart

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

Creates a new Chart, initialize it with sample series data and settings and inserts it to the specified position in the collection.

public IChart InsertChart(ChartType type, float x, float y, float width, float height, int index)
ParameterTypeDescription
typeChartTypeType of chart.
xSingleX coordinate of a new chart.
ySingleY coordinate of a new chart.
widthSingleChart’s width.
heightSingleChart’s height.
indexInt32Chart’s position in the collection.

Return Value

Created chart.

See Also


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

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

public IChart InsertChart(ChartType type, float x, float y, float width, float height, int index, 
    bool initWithSample)
ParameterTypeDescription
typeChartTypeType of chart.
xSingleX coordinate of a new chart.
ySingleY coordinate of a new chart.
widthSingleChart’s width.
heightSingleChart’s height.
indexInt32Chart’s position in the collection.
initWithSampleBooleanIf 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