25
votes

In ASP.NET Column Chart, when the chart size is small some axis labels are not shown.

Question: How can I force all the label to show even if they have to overlap?

1
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.