简体   繁体   中英

Why does MS Chart only display x-axis labels for some data points?

When I bind the data to the barchart. I am not able to see the labels in the X-axis for some bars. Eg: i bind four data to the chart. The chart is displaying only 2nd and 4th data label.

According to http://msdn.microsoft.com/fr-fr/library/system.web.ui.datavisualization.charting.axis.interval.aspx you can try something like :

myArea.AxisX.Interval=1;

where myArea is your main ChartArea

NB : "The Interval property of a major tick mark, grid line or label of the axis has priority over the Interval property setting of the Axis object."

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM