How can I make a C# vertical bar chart
<p>I'm using the'System.Windows.Forms.DataVisualization.Charting' library for my bar chart but the bars are horizontal rather than vertical.  I tried changing </p>

<pre><code>myChart.Series["mySeries"].ChartType = SeriesChartType.Bar;
</code></pre>

<p><a href="https://i.stack.imgur.com/3dMMy.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3dMMy.jpg" alt="enter image description here"></a></p>

<p>to</p>

<pre><code>myChart.Series["mySeries"].ChartType = SeriesChartType.Column;
</code></pre>

<p><a href="https://i.stack.imgur.com/OAwgK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OAwgK.jpg" alt="Bar"></a></p>

<p>but that didn't work at all as you can see from the 2nd screenshot.</p>