InsertChart

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

创建一个新的图表,用示例系列数据和设置初始化它,并将其插入到集合中的指定位置。

public IChart InsertChart(ChartType type, float x, float y, float width, float height, int index)
参数类型描述
typeChartType图表的类型。
xSingle新图表的 X 坐标。
ySingle新图表的 Y 坐标。
widthSingle图表的宽度。
heightSingle图表的高度。
indexInt32图表在集合中的位置。

返回值

创建的图表。

参见


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

创建一个新的图表,并将其插入到集合中的指定位置。

public IChart InsertChart(ChartType type, float x, float y, float width, float height, int index, 
    bool initWithSample)
参数类型描述
typeChartType图表的类型。
xSingle新图表的 X 坐标。
ySingle新图表的 Y 坐标。
widthSingle图表的宽度。
heightSingle图表的高度。
indexInt32图表在集合中的位置。
initWithSampleBoolean如果为 true,则新图表将使用示例系列数据和设置初始化。如果为 false,则新图表将没有系列和最小的设置。在这种情况下,创建图表的速度会更快。

返回值

创建的图表。

参见