回复@chrisneilsen,但添加为评论太长了。
回复部分正确(我在这里总结了我的发现):
重复PlotOrder
的 s 是由于Chart
有多个ChartGroup
我没有Series
不同的格式(它们有不同ChartType
的 s,但都具有 format XYScatter
)。
在我的情况下,分组不是由 s 自动完成的ChartType
,ChartType
所以这似乎不是拥有多个 s 的原因ChartGroup
。它可能是自动的(并且可能是),但基于其他标准。
细节:
使用另一个呈现相同情况的图表(全部Series
使用 format XYScatter
),我执行了一个 Sub 来转储图表中所有ChartGroups
和所有的信息。Series
转储一次缩进,每次ChartGroups
转储缩进两次。Series
ChartGroup
ChartObject 'Chart 36', no. series: 6
* ChartGroup, .Index: 1, no. series: 2
** plot order: 1, type: -4169, chart: 'Chart 36', chart type: 73, no. points: 17
** plot order: 2, type: -4169, chart: 'Chart 36', chart type: -4169, no. points: 17
* ChartGroup, .Index: 2, no. series: 4
** plot order: 1, type: -4169, chart: 'Chart 36', chart type: 75, no. points: 2
** plot order: 2, type: -4169, chart: 'Chart 36', chart type: -4169, no. points: 24
** plot order: 3, type: -4169, chart: 'Chart 36', chart type: 75, no. points: 33
** plot order: 4, type: -4169, chart: 'Chart 36', chart type: -4169, no. points: 5
因此,重复PlotOrder
的 s 是由于Chart
具有多个ChartGroup
(正如@chrisnielsen 正确猜测的那样)。
另一方面,ChartGroup
s 不ChartType
按照转储中看到的(如@chrisnielsen 所述)对系列进行分组。此外,我不知道ChartGroup
s 是如何创建和Series
包含在每个中的ChartGroup
(我从来没有故意这样做)。
为了测试分组是否可能已经自动完成,我创建了另一个Chart
Series 与ChartType
上面的相同,它们都属于一个单一的ChartGroup
,如转储中所示
ChartObject 'Chart 1', no. series: 6
* ChartGroup, .Index: 1, no. series: 6
** plot order: 1, type: -4169, chart: 'Chart 1', chart type: 73, no. points: 17
** plot order: 2, type: -4169, chart: 'Chart 1', chart type: -4169, no. points: 17
** plot order: 3, type: -4169, chart: 'Chart 1', chart type: 75, no. points: 2
** plot order: 4, type: -4169, chart: 'Chart 1', chart type: -4169, no. points: 24
** plot order: 5, type: -4169, chart: 'Chart 1', chart type: 75, no. points: 33
** plot order: 6, type: -4169, chart: 'Chart 1', chart type: -4169, no. points: 5
ChartType
因此,ChartType
对于我的案例,分组不是由 s 自动完成的。它可能是自动的(并且可能是),但基于其他标准。
官方网站不是很有帮助:
http://msdn.microsoft.com/en-us/library/office/aa173251%28v=office.11%29.aspx
http://msdn.microsoft.com/en-us/library/office/aa173240%28v=office.11%29.aspx
http://msdn.microsoft.com/en-us/library/office/aa195778%28v=office.11%29.aspx
这引发了另一个问题,我在
Excel:可以通过哪些方式创建图表组?