简体   繁体   中英

Chart Control add x points

2j0Q8.png

I have a chart control. It has 8 points(spots) in x axis, I need 30.

I went through all properties but can't find where to set that. Any tips?

Try setting the AxisX properties of the chart:

chart1.ChartAreas[0].AxisX.Interval = 1;
chart1.ChartAreas[0].AxisX.Minimum = 1;
chart1.ChartAreas[0].AxisX.Maximum = 30;

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