title: amCharts: Help with WPF MVVM Data Binding?
body: <p>Looking a bit of help with Data Binding here and amCharts, through MVVM.  At the minute I have:</p>
  
  <p>An ObservableCollection, named AskCollection</p>
  
  <p>This is a collection of SymbolObjectModels</p>
  
  <p>Each Model contains a:</p>
  
  <pre><code>public double Size { get; set; }
  public double BidAsk { get; set; }
  public string QuoteID { get; set; }
  </code></pre>
  
  <p>Currently I'm attempting to bind the data in the XAML as follows, with no luck:</p>
  
  <pre><code>&lt;xaml&gt;
      &lt;am:LineChart Grid.ColumnSpan="2" SeriesSource="{Binding AskCollection}" IDMemberPath="{Binding QuoteID}" Background="DimGray"&gt;
                  &lt;am:LineChart.Graphs&gt;
                      &lt;am:LineChartGraph DataItemsSource="{Binding AskCollection}" ValueMemberPath="{Binding BidAsk}" SeriesIDMemberPath="{Binding QuoteID}"&gt;
                      &lt;/am:LineChartGraph&gt;
                  &lt;/am:LineChart.Graphs&gt;
      &lt;/am:LineChart&gt;
  &lt;/xaml&gt;
  </code></pre>
  
  <p>Unfortunately, there is no Line Chart appearing :(  I also tried with a List opposed to an ObservableCollection, still no joy.</p>
  
  <p>Can anyone see what I'm doing wrong?</p>
  
  <p>Much appreciated,  Cheers.</p>