title: How to create simple bar chart in WPF?
body: <p>So far, I tried Oxyplot and official example from here <a href="http://oxyplot.codeplex.com/wikipage?title=BarSeries" rel="nofollow">http://oxyplot.codeplex.com/wikipage?title=BarSeries</a> 
  However I faced several problems:</p>
  
  <p>First of all he can't recognize namespace oxy, as a result he can't find any required function, such as <code>CategoryAxis</code> and <code>BarSeries</code>, despite the fact, that I have added all neccessary  libraries.</p>
  
  <p><strong>packages.config</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;packages&gt;
    &lt;package id="OxyPlot.Core" version="2013.2.138.1" targetFramework="net451" /&gt;
    &lt;package id="OxyPlot.Wpf" version="2013.2.138.1" targetFramework="net451" /&gt;
  &lt;/packages&gt;
  </code></pre>
  
  <p><strong>Main.Window.xaml.cs</strong></p>
  
  <pre><code>using OxyPlot;
  
  namespace OxyPlotDemo
  {
  
      public partial class MainWindow : Window
      {
          public MainWindow()
          {
  
              InitializeComponent();
          }
  
  
          private void Button_Click(object sender, RoutedEventArgs e)
          {
              var tmp = new PlotModel();
          tmp.Axes.Add(new CategoryAxis { ItemsSource = items, LabelField = "Label" }); // dont know wher
          tmp.Axes.Add(new LinearAxis(AxisPosition.Left) { MinimumPadding = 0, AbsoluteMinimum = 0 });
          tmp.Series.Add(new BarSeries { Title = "2009", ItemsSource = items, 
                                        ValueField = "Value1" });
      }
  }
  }
  </code></pre>
  
  <p><strong>MainWindow.xml</strong> Just added button</p>
  
  <pre><code>&lt;Window x:Class="OxyPlotDemo.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          Title="MainWindow" Height="350" Width="525"&gt;
      &lt;Grid&gt;
          &lt;Button Content="Button" HorizontalAlignment="Left" Margin="432,10,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click"/&gt;
  
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>VS2013 says, that he don't know any <code>CategoryAxis</code>, <code>items</code>, <code>LinearAxis</code>, <code>AxisPosition</code>, <code>BarSeries</code>, how I can get them or what am I doing wrong? And is it possible to avoid <code>DataBinding</code>. Or maybe someone how create bar chart in other way?</p>