Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
5124
Plotting a line chart from a simple array of numbers
posted

A customer recently asked me how to plot a Line Chart from a simple array of type double, as he was not seeing his data plotted in the control.  It turned out that the Series's DataMapping property was not being set in the code, so I set it to an arbitrary string, and that allowed the data to be plotted.  I could have set it to String.Empty too.

The attached sample demonstrates the plotting of an array of double as a Line chart .

XCHT_Line_DataArray.zip