Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. string[] xAxis = { "Banana", "Mango", "Apple" };
  2.  
  3. double[] Percentage = { BananaPercentage, MangoPercentage, ApplePercentage };
  4.  
  5. Color[] PieColors = { Color.Green, Color.Red, Color.Gray };
  6.  
  7. chart1.Series[0].Label = "#PERCENT";
  8. chart1.Series[0].LegendText = "#AXISLABEL";
  9. //chart1.Series[0].Points[0].Color = PieColors[0];
  10. chart1.Series[0].Points.DataBindXY(xAxis, Percentage);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement