传奇不止一个系列 [英] Legends for more than one series

查看:64
本文介绍了传奇不止一个系列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建LegendEntries以获得更多系列而不是在图表中创建的第一个系列。

I can't get excel to create LegendEntries for more series than the first one created in a chart.

系列添加使用:

MSExcel.Series series = seriesCollection.NewSeries();

MSExcel.Series series = seriesCollection.NewSeries();

根据第一次调用中系列的值,创建图例时相同数量的legend.LegendEntries,假设使用6行而不是6个条目。

Depending on the values of the series in the first call the legend is created with an equal number of legend.LegendEntries, let's say 6 rows are used than 6 entries are created.

MSExcel.Legend legend =(MSExcel.Legend)chartObject.Chart.Legend;

MSExcel.Legend legend = (MSExcel.Legend)chartObject.Chart.Legend;

如果我向NewSeries添加另一个调用,传说不受影响,任何想法为什么?我可以更改第一个系列的图例中创建的条形的内部颜色,但不能更改剩余的条形图。有什么想法会发生这种情况吗? 

If I add another call to NewSeries the legend is not affected, any idea why? I'm able to change the interior color of the bars created in the legend for the first series but not for the remaining. Any ideas why this happens? 

谢谢,

Mikael

推荐答案

嗨 突然,

Hi Sudden,

此论坛(Excel for Developers)适用于与Microsoft产品的Excel对象模型相关的开发问题。正如您提到的MSExcel对象,它是更相关的第三方产品功能。如果是这样,
我建议您可以找到
相关  支持团队为此提供帮助。

This forum(Excel for Developers) is for development issues related to Excel Object Model of Microsoft product. As your mentioned MSExcel object which is more related third part product feature. If so, I would suggest that you can find related support team to help for this.

感谢您的理解。

最好的问候,

Bruce


这篇关于传奇不止一个系列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆