title: How do you display data points in percentage format using mschart in c#
body: <p>I have been trying to display percentage for my data points in ms chart in this format 00.00%. I can not figure out how. </p>
  
  <p>I used this for my series label </p>
  
  <pre><code>chart1.Series[1].Label = "#PERCENT";
  </code></pre>
  
  <p>and it turns out like this on the chart, the values are not displaying correctly.</p>
  
  <p><a href="https://i.stack.imgur.com/Sgpr9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Sgpr9.png" alt="enter image description here"></a></p>
  
  <p>The data is coming from a data table and this is how I am populating the chart</p>
  
  <pre><code> //Chart data points
                  foreach(DataRow r in dt.Rows)
                  {
                      object wk = (r["week_num"]).ToString();
                      object fpy = (r["fpy"]); // First pass yield percentage
                      object thrput = (r["throughput"]).ToString();
  
                      chart1.Series[0].Points.AddXY(wk, thrput);
                      chart1.Series[1].Points.AddXY(wk, fpy);
                  }
  </code></pre>
  
  <p>I am not sure how to correct format the data points in the line graph to display the correct value and in the percentage format. </p>
  
  <p>Any suggestions? </p>
  
  <p>EDIT:</p>
  
  <p>if I remove this line</p>
  
  <pre><code>chart1.Series[1].Label = "#PERCENT";
  </code></pre>
  
  <p>The values are correct but not in percentage format</p>
  
  <p><a href="https://i.stack.imgur.com/E6fzi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E6fzi.png" alt="enter image description here"></a></p>