<Window x:Class="BarSeriesDemo.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="BarSeriesDemo" 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="Bar series (XAML)" LegendPlacement="Outside" LegendPosition="RightTop" LegendOrientation="Vertical">
                <oxy:Plot.Axes>
                    <oxy:CategoryAxis Position="Left" ItemsSource="{Binding Items}" LabelField="Label"/>
                    <oxy:LinearAxis Position="Bottom" MinimumPadding="0" AbsoluteMinimum="0"/>
                </oxy:Plot.Axes>
                <oxy:Plot.Series>
                    <oxy:BarSeries Title="2009" ItemsSource="{Binding Items}" ValueField="Value1"/>
                    <oxy:BarSeries Title="2010" ItemsSource="{Binding Items}" ValueField="Value2"/>
                    <oxy:BarSeries Title="2011" ItemsSource="{Binding Items}" ValueField="Value3"/>
                </oxy:Plot.Series>
            </oxy:Plot>
        </TabItem>
    </TabControl>
</Window>
