add方法
内容
[
隐藏
]
add(type, upper_left_row, upper_left_column, lower_right_row, lower_right_column)
向集合中添加图表。
返回
Chart 对象索引。
def add(self, type, upper_left_row, upper_left_column, lower_right_row, lower_right_column):
...
| 范围 | 类型 | 描述 |
|---|---|---|
| type | ChartType | 图表类型 |
| upper_left_row | int | 左上行索引。 |
| upper_left_column | int | 左上列索引。 |
| lower_right_row | int | 右下行索引 |
| lower_right_column | int | 右下栏索引 |
add(type, data_range, top_row, left_column, right_row, bottom_column)
向集合中添加图表。
返回
Chart 对象索引。
def add(self, type, data_range, top_row, left_column, right_row, bottom_column):
...
| 范围 | 类型 | 描述 |
|---|---|---|
| type | ChartType | 图表类型 |
| data_range | str | 指定图表的数据范围 |
| top_row | int | 左上行索引。 |
| left_column | int | 左上列索引。 |
| right_row | int | 右下行索引 |
| bottom_column | int | 右下栏索引 |
评论
注意:该成员现已过时。反而, 请使用 ChartCollection.add(type, upper_left_row, upper_left_column, lower_right_row, lower_right_column) 属性。 自 2022 年 5 月起,此属性将在 12 个月后移除。 Aspose 对您可能遇到的任何不便深表歉意。
add(data, data_range, is_vertical, top_row, left_column, right_row, bottom_column)
添加带有预设模板的图表。
返回
Chart 对象索引。
def add(self, data, data_range, is_vertical, top_row, left_column, right_row, bottom_column):
...
| 范围 | 类型 | 描述 |
|---|---|---|
| data | bytes | 图表模板文件(.crtx)的数据。 |
| data_range | str | 指定图表的数据范围 |
| is_vertical | bool | 指定是按行还是按列绘制一系列单元格值。 |
| top_row | int | 左上行索引。 |
| left_column | int | 左上列索引。 |
| right_row | int | 右下行索引 |
| bottom_column | int | 右下栏索引 |
add(type, data_range, is_vertical, top_row, left_column, right_row, bottom_column)
向集合中添加图表。
返回
Chart 对象索引。
def add(self, type, data_range, is_vertical, top_row, left_column, right_row, bottom_column):
...
| 范围 | 类型 | 描述 |
|---|---|---|
| type | ChartType | 图表类型 |
| data_range | str | 指定图表的数据范围 |
| is_vertical | bool | 指定是按行还是按列绘制一系列单元格值。 |
| top_row | int | 左上行索引。 |
| left_column | int | 左上列索引。 |
| right_row | int | 右下行索引 |
| bottom_column | int | 右下栏索引 |