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,则新图表将没有系列和最少的设置。在这种情况下,图表创建将更快。

返回值

创建的图表。

另请参见