Changing a horizontal bar chart to a vertical one

陌路散爱 提交于 2019-12-18 07:31:11

问题


I'm using the'System.Windows.Forms.DataVisualization.Charting' library for my chart and I was wondering if anyone figured out how to switch the axes to display the chart vertically

Thanks.


回答1:


Changed

myChart.Series["mySeries"].ChartType = SeriesChartType.Bar;

to

myChart.Series["mySeries"].ChartType = SeriesChartType.Column;


来源:https://stackoverflow.com/questions/2374862/changing-a-horizontal-bar-chart-to-a-vertical-one

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!