ChartDataPointCollection
概述
ChartDataPointCollection 是 Aspose.Slides FOSS 中用于 Python 的类。继承自:IChartDataPointCollection。
表示一个系列的数据点集合。
此类提供 13 个方法,用于在 Python 程序中处理 ChartDataPointCollection 对象。可用的方法包括:add_data_point_for_area_series, add_data_point_for_bar_series, add_data_point_for_bubble_series, add_data_point_for_doughnut_series, add_data_point_for_line_series, add_data_point_for_pie_series, add_data_point_for_radar_series, add_data_point_for_scatter_series, add_data_point_for_stock_series, add_data_point_for_surface_series, clear, remove,以及另外 1 个方法。所有公共成员在安装 Aspose.Slides FOSS for Python 包后,可供任何 Python 应用程序访问。属性:data_source_type_for_bubble_sizes, data_source_type_for_error_bars_custom_values, data_source_type_for_values, data_source_type_for_x_values, data_source_type_for_y_values。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
data_source_type_for_error_bars_custom_values | IDataSourceTypeForErrorBarsCustomValues | 读取 | 自定义误差棒属性中的值类型。 |
data_source_type_for_values | DataSourceType | 读写 | 获取或设置值的数据源类型。 |
data_source_type_for_x_values | DataSourceType | 读写 | 获取或设置 x 值的数据源类型。 |
data_source_type_for_y_values | DataSourceType | 读写 | 获取或设置 y 值的数据源类型。 |
data_source_type_for_bubble_sizes | DataSourceType | 读写 | 获取或设置气泡大小的数据源类型。 |
方法
| 签名 | 描述 |
|---|---|
add_data_point_for_bar_series(value) → IChartDataPoint | 将给定值的数据点添加到柱状系列中并返回该点 |
add_data_point_for_line_series(value) → IChartDataPoint | |
add_data_point_for_pie_series(value) → IChartDataPoint | |
add_data_point_for_doughnut_series(value) → IChartDataPoint | |
add_data_point_for_area_series(value) → IChartDataPoint | |
add_data_point_for_radar_series(value) → IChartDataPoint | |
add_data_point_for_stock_series(value) → IChartDataPoint | |
add_data_point_for_surface_series(value) → IChartDataPoint | |
add_data_point_for_scatter_series(x_value, y_value) → IChartDataPoint | 向散点系列添加具有给定 X 和 Y 值的数据点,并返回该点 |
add_data_point_for_bubble_series(x_value, y_value, bubble_size) → IChartDataPoint | 向气泡系列添加具有 X、Y 和气泡大小的数据点,并返回该点 |
clear() | 从集合中移除所有数据点 |
remove(value: ChartDataPoint) | 从集合中移除指定的 ChartDataPoint |
remove_at(index: int) | 从集合中移除给定索引处的数据点 |