将水平条形图更改为垂直条形图 [英] Changing a horizontal bar chart to a vertical one

查看:181
本文介绍了将水平条形图更改为垂直条形图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的图表使用' System.Windows.Forms.DataVisualization.Charting 库,我想知道是否有人想出了如何切换轴以垂直显示图表

感谢。



解决方案

已更改

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

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


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.

解决方案

Changed

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

to

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

这篇关于将水平条形图更改为垂直条形图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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