主题
NewSeries (方法)
创建新系列。返回代表该新系列的 Series 对象。
说明
本方法对数据透视图无效。
返回值
Series
示例
python
#本示例向图表工作表 Chart1 中添加新系列
def test():
ns = Application.Charts.Item("Chart1").ChartObjects(1).Chart.SeriesCollection().NewSeries()
python
#此示例向第一张工作表中第一个图表添加新系列
def test():
Application.Worksheets.Item(1).ChartObjects(1).Chart.SeriesCollection().NewSeries()