本文介绍了绘制重叠的柱形图或条形图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用列或条形图将4系列数据绘制到MSChart.我可以绘制这四个系列,以便数据重叠而不是堆叠.

I need to plot 4 series data to MSChart using column or bar type. Can I plot those 4 series so that the data is overlapped instead of being stacked.

我刚刚发现Office Excel有一个ChartGroup.Overlap属性.

I just found there is a ChartGroup.Overlap property for office Excel.

如何在MSChart中完成?如果没有,什么图表控件可以做到这一点?任何信息将不胜感激.

How can I do it in MSChart? If not, what chart control can do this? Any info will be much appreciated.

推荐答案

C#图表具有每个系列的属性. 列"图表类型具有特别针对该重叠问题的属性

C# chart has properties for each series. The "column" chart type has property especially for that overlapping problem

chart_1.Series["col_name"].CustomProperties = "DrawSideBySide=False";

这篇关于绘制重叠的柱形图或条形图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 00:40