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.
Change the way that data is plotted Click anywhere in the chart that contains the data series that you want to plot on different axes. This displays the Chart Tools, adding the Design, Layout, and Format tabs. On the Design tab, in the Data group, click Switch Row/Column.
Go to the Chart Elements drop down list and pick Vertical (Value) Axis. Click the Format Selection button to see the Format Axis window. On the Format Axis window tick the Values in reverse order checkbox.
Changed
myChart.Series["mySeries"].ChartType = SeriesChartType.Bar;
to
myChart.Series["mySeries"].ChartType = SeriesChartType.Column;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With