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.
I used this for my series label
chart1.Series[1].Label = "#PERCENT";
and it turns out like this on the chart, the values are not displaying correctly.
The data is coming from a data table and this is how I am populating the chart
//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);
}
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.
Any suggestions?
EDIT:
if I remove this line
chart1.Series[1].Label = "#PERCENT";
The values are correct but not in percentage format


0? For example04.21%. Please clarify "not correctly" - Saragis