Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a stacked chart control where I am displaying total number of items purchased (in Y-axis) against the supplier name in (in x-axis). Graph plots perfectly but problem is, its displaying the -1 and 3 on x-axis. How can I remove this.

What I have tried:

I tried with below code.
C#
Chart1.ChartAreas[0].AxisX.IsMarginVisible = false;
Posted

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