vb.net - Chart Series to Array -


i'm using vb.net 2010 how data series on chart array or textbox or table?

i'm using code plot graph:

serie1.points.addxy(val(label4.text), val(label5.text)) 

i need read values serie1.

you store values in list while adding series or if want access after adding series following.

using system.windows.forms.datavisualization.charting; datapoint[] arr = series.points.toarray<datapoint>(); 

or

list<datapoint> lst = series.points.tolist<datapoint>(); 

and can access x , y values using foreach loop

foreach(var pt in lst) {    pt.xvalue  // access xvalue    pt.yvalue  // access yvalue } 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -