ChartSeries
- class ChartSeries
A chart data series.
Chart.seriesandChart.get_seriesreturn aChartSeriesCollection. Indexing or iterating that collection returnsChartSeriesobjects.Use
set()to change several attributes in one operation. On xlwings Lite, use the asynchronous getters to fetch current values from Excel.>>> chart = xw.books["Book1"].sheets[0].charts[0] >>> series = chart.series[0] >>> series.set(name="Revenue", marker_style="circle", marker_size=8)
在 0.37.5 版本加入.
- property fill_color: tuple[int, int, int] | None
Returns or sets the solid series fill color.
- Setter type:
tuple[int, int, int] | str | int
- async get_fill_color()
Fetches the solid series fill color.
Requires xlwings Lite.
- 返回类型:
tuple[int, int, int] | None
- async get_line_color()
Fetches the series line color.
Requires xlwings Lite.
- 返回类型:
tuple[int, int, int] | None
- async get_marker_background_color()
Fetches the marker background color.
Requires xlwings Lite.
- 返回类型:
tuple[int, int, int] | None
- async get_marker_foreground_color()
Fetches the marker foreground color.
Requires xlwings Lite.
- 返回类型:
tuple[int, int, int] | None
- property line_color: tuple[int, int, int] | None
Returns or sets the series line color.
- Setter type:
tuple[int, int, int] | str | int
- property marker_background_color: tuple[int, int, int] | None
Returns or sets the marker background color.
- Setter type:
tuple[int, int, int] | str | int
- property marker_foreground_color: tuple[int, int, int] | None
Returns or sets the marker foreground color.
- Setter type:
tuple[int, int, int] | str | int