回复@chrisneilsen,但添加为评论太长了。
回复部分正确(我在这里总结了我的发现):
重复PlotOrder的 s 是由于Chart有多个ChartGroup
我没有Series不同的格式(它们有不同ChartType的 s,但都具有 format XYScatter)。
在我的情况下,分组不是由 s 自动完成的ChartType,ChartType所以这似乎不是拥有多个 s 的原因ChartGroup。它可能是自动的(并且可能是),但基于其他标准。
细节:
使用另一个呈现相同情况的图表(全部Series使用 format XYScatter),我执行了一个 Sub 来转储图表中所有ChartGroups和所有的信息。Series转储一次缩进,每次ChartGroups转储缩进两次。SeriesChartGroup
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 正确猜测的那样)。
另一方面,ChartGroups 不ChartType按照转储中看到的(如@chrisnielsen 所述)对系列进行分组。此外,我不知道ChartGroups 是如何创建和Series包含在每个中的ChartGroup(我从来没有故意这样做)。
为了测试分组是否可能已经自动完成,我创建了另一个ChartSeries 与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:可以通过哪些方式创建图表组?