<Window x:Class="ColumnSeriesDemo.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:oxy="clr-namespace:OxyPlot.Wpf;assembly=OxyPlot.Wpf" Title="ColumnSeriesDemo" Height="480" Width="640">
    <TabControl>
        <TabItem Header="Binding to PlotModel">
            <oxy:PlotView Model="{Binding Model1}"/>
        </TabItem>
        <TabItem Header="Define plot in XAML">
            <oxy:Plot Title="Column series (XAML)" LegendPlacement="Outside" LegendPosition="RightTop" LegendOrientation="Vertical">
                <oxy:Plot.Axes>
                    <oxy:CategoryAxis ItemsSource="{Binding Items}" LabelField="Label"/>
                    <oxy:LinearAxis MinimumPadding="0" AbsoluteMinimum="0"/>
                </oxy:Plot.Axes>
                <oxy:Plot.Series>
                    <oxy:ColumnSeries Title="2009" ItemsSource="{Binding Items}" ValueField="Value1"/>
                    <oxy:ColumnSeries Title="2010" ItemsSource="{Binding Items}" ValueField="Value2"/>
                    <oxy:ColumnSeries Title="2011" ItemsSource="{Binding Items}" ValueField="Value3"/>
                </oxy:Plot.Series>
            </oxy:Plot>
        </TabItem>
    </TabControl>
</Window>
