Binding to a collection

Sep 6, 2010 at 2:54 PM
I am using an observable collection to store values for a line graph, but cannot find the correct way to bind this to the x and y axis of my chart.
ObservableCollection<LaserHoleMeasurements> Data = new ObservableCollection<LaserHoleMeasurements>();
  I have used MScharts and the binding is in the ItemSource, I like the features you have but am finding it difficult to see where the binding goes.

<Window x:Class="WPFDataChartTests.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:WPFDataChartTests"
        xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
    <d3:ChartPlotter Name="Plotter" Margin="10, 10, 20, 10" >

            
            <d3:Header FontFamily="Arial" Content="Hole Size vs PulseWidth"/>
        <d3:VerticalAxisTitle FontFamily="Arial" Content="Hole Size (uM)"/>
        <d3:HorizontalAxisTitle FontFamily="Arial" Content="Pulse Width (mS)"/>
           
        </d3:ChartPlotter>
    </Grid>
</Window>