Can you quickly give a background for the problem
- V4Vendetta
Hi, I am drawing a column chart using ASP.NET charting. I have 10 points to draw. the width of the chart is 300px. The axis label of some points is not showing due to the lack of space. I was wondering if I can force it to show even if there is not enough space. Thanks. Hope I was clear
- Youssef
Try setting the Interval property to 1, this should force it to show the labels
- V4Vendetta
Yes, Thank you very much. Add it as an answer so I can Accept it.
- Youssef
To make it more clear ` chart1.ChartAreas["ChartArea1"].AxisX.Interval = 1;`
- DmitryBoyko
1 Answers
51
votes
Set the Interval property for the Axis to 1, this will enforce it to display all the available labels irrespective of the space limitation.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
Intervalproperty to 1, this should force it to show the labels - V4Vendetta