title: Percent value in y axis of Column Chart Microsoft chart control
body: <p>I am trying to get Column charts, where I need to have percentage value in y axis and should recalculate and scale. </p>
  
  <p>I have seen some suggestion to assign minimum and maximum value ( <code>chart.ChartAreas[0].AxisY.Minimum=0</code>) but it's not adjusting the column height according to the percentage. Any help will be appreciated. </p>
  
  <p>Below is what I have done so far</p>
  
  <pre><code> foreach (var value in labels)
     {
  
       chart.Legends[value].Alignment = StringAlignment.Center;
       chart.Legends[value].Docking = Docking.Bottom;
       chart.Series[value].ChartType = SeriesChartType.Column;
       chart.Series[value].IsValueShownAsLabel = true;
       chart.Series[value].Label = "#PERCENT{P0}";
  
       chart.ChartAreas[0].AxisX.MajorGrid.Enabled = false;
       chart.ChartAreas[0].AxisY.MajorGrid.Enabled =false;
       chart.ChartAreas[0].AxisY.Minimum=0;
        // chart.ChartAreas[0].RecalculateAxesScale();
  
        chart.BringToFront();
  
        if (count == 0 &amp;&amp; comp.Value != null)
          chart.Series[value].Points.Add(comp.Value[0]);
        else if (count &gt;= 1 &amp;&amp; comp.Value != null &amp;&amp; comp.Value.Count() &gt; count)
          chart.Series[value].Points.Add(comp.Value[count]);
        else
          chart.Series[value].Points.Add(0);
  
            count++;
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/5saQo.png" alt="column chart">
  The Y axis should show the percentage and the columns height should be adjusted to the y axis percentage value. </p>