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
Post a Comment