title: Oxyplot, adding data from an array
body: <p>I have an array with 42 double values (<code>double[] data = new double[42];</code>). Now I want to visualize this data with the oxyplot chart, but I did not figure out how I can do that, because on the website the following example is given:</p>
  
  <pre><code>    public class MainViewModel
      {
          public MainViewModel()
          {
              this.Title = "Example 2";
              this.Points = new List&lt;DataPoint&gt;
                                {
                                    new DataPoint(0, 4),
                                    new DataPoint(10, 13),
                                    new DataPoint(20, 15),
                                    new DataPoint(30, 16),
                                    new DataPoint(40, 12),
                                    new DataPoint(50, 12)
                                };
          }
  
          public string Title { get; private set; }
  
          public IList&lt;DataPoint&gt; Points { get; private set; }
      }
  </code></pre>
  
  <p>I also have to visualize another array with 16'064 double values. I think you can imagine that I am looking for a way to do that as simple as possible, such as the next example with the Sinus function:</p>
  
  <p><strong>Sinus-Example</strong></p>
  
  <pre><code>// Adding data (FunctionSeries) to the Chart
              chart1.Series.Add(new FunctionSeries(Math.Sin, 0, 30, 0.1, "sin(x)"));
  </code></pre>