title: WPF: width column in graph
body: <p>I am writing because I have a problem with wpf and its graphics.
  Basically, I want to create a column chart. My problem is that I can not set the width of the columns. On the internet I have only seen examples of columns with fixed width.</p>
  
  <p>My XAML code is this:</p>
  
  <pre><code>&lt;Grid Height="871" Width="572"&gt;
          &lt;chartingToolkit:Chart Height="337" HorizontalAlignment="Left"    Margin="65,0,0,496" Name="columnChart" Title="Column Series Demo" VerticalAlignment="Bottom" Width="440"&gt;
              &lt;chartingToolkit:Chart.Axes&gt;
                  &lt;chartingToolkit:LinearAxis Title="Wireless Power" Orientation="Y" Interval="100" /&gt;
                  &lt;chartingToolkit:LinearAxis Title="Time" Orientation="X" Interval="100" /&gt;
              &lt;/chartingToolkit:Chart.Axes&gt;
              &lt;chartingToolkit:ColumnSeries Name="myGraph" IndependentValuePath="Key" ItemsSource="{Binding}" AnimationSequence="FirstTo"/&gt;             
          &lt;/chartingToolkit:Chart&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>The code behind is: </p>
  
  <pre><code>private void showColumnChart(){
  
      List&lt;KeyValuePair &lt;int, int&gt;&gt; valueList = new List&lt;KeyValuePair&lt;int, int&gt;&gt;();
      valueList.Add(new KeyValuePair&lt;int, int&gt;(12, 55));
      valueList.Add(new KeyValuePair&lt;int, int&gt;(15, 60));
      columnChart.DataContext = valueList;
  }
  </code></pre>
  
  <p>Now, my purpose is to represent the strength of my wireless during the day. But there may be times when you are not connected, then power is nothing, or there are times when, for example, from 7.00 pm to 8.00pm the signal strength is equal to-78db. I have previously collected in a database and now I want to represent them. So my goal is, considering, for example, a time interval of 24 h, place the bars on the graph, where the x-axis is the detection time of the power of wireless, while the y-axis is the power.</p>
  
  <p>I hope I have explained it well.</p>