简体   繁体   中英

C# chart, how to get the maximum x-axis value?

I know this might be a silly question, but can someone please tell me: given a point collection, how to find the maximum x-axis value? Ii.e: the x value of the right most point?

I see one function like this:

chart1.Series["XXX"].Points.FindMaxByValue() 

but seems like it only finds the maximum Y-axis value.

Just got the confirmation from @Matthew Watson that it is the correct answer what I have put in comments:-

So you can try with:-

chart1.Series["XXX"].AxisX.Maximum

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