Changing a horizontal bar chart to a vertical one

2019-01-27 13:36发布

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.

alt text

1条回答
虎瘦雄心在
2楼-- · 2019-01-27 14:02

Changed

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

to

myChart.Series["mySeries"].ChartType = SeriesChartType.Column;
查看更多
登录 后发表回答