且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用C#在Excel中添加多个系列的图表

更新时间:2023-11-21 21:40:46

我可以解决这个问题非常简单的解决方案。结果
如果我设置yRange(橙色)的权利,图表向导的方法会自动创建图表。结果
所以代替具有范围的A2:A100,A2:A100,C2:C100的意愿产生一个图表上的两行(系列),并且还如果数据范围包括标题(或串联标签)中,图表向导,将自动把该系列名称中的传奇人物。

I could solve this issue with very simple solution.
If I set the yRange (oRange) right, "ChartWizard" method automatically creates the graphs.
So instead of range having "A2:A100", "A2:A100,C2:C100" will generates two lines (series) on one chart and also if the data range includes the heading (or series label), the "ChartWizard" will automatically put the series name in the legend.