Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Experts
I have a chart control in my aplication for error chart. I want to set Axis x labes manullay...means i want to show "name","add" etc on X Axis labes...I have googled but not found any solution..How it is possible plz answer....

Thanks
Posted

1 solution

Try
C#
for (int c = 1; c < numOfColumns; c++)
  chart.ChartAreas[0].AxisX.CustomLabels.Add(new CustomLabel(c - 0.5, c + 0.5, labels[c], 0, LabelMarkStyle.None));

Here labels is your array that contains all the labels.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900