Chart series binding

This view shows how you can use the FlexChart to show data from multiple data sources, one per series.

The sample does the following:

  1. Set the chart's bindingX and binding properties to "x" and "y".
  2. Add a Series object to the chart's series array and set its itemsSource property to an array of objects that have "x" and "y" properties.
  3. Add a second Series object to the chart's series array and set its itemsSource property to a different array of objects that have "x" and "y" properties.

Alternatively, we could have set the bindingX and binding properties on the Series objects instead of setting then on the chart. In this case this was not necessary because the binding names are the same for all series.