title: Dynamic Data Display charting: change Y axis range
body: <p>Does anyone know if is there any way to change the Y axis limits on a line chart from D3?</p>
  
  <p>I'm using the last version from Codeplex source... The WPF one, not the Silverlight version.</p>
  
  <p>I'm plotting readings from Android sensors and the range values change quite a bit. Sometimes it's around zero and the graph looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/okFZF.png" alt="Ranging from -0.05 to +0.05"></p>
  
  <p>Then the magnitude of the values changes and the Y axis is rescaled to show the entire data and the graph now looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/jMT1i.png" alt="Ranging from -0.8 to + 0.6"></p>
  
  <p>See how the Y values changed a lot from Picture 1 to 2.</p>
  
  <p>What I want is to make the Y axis with fixed values that I choose, lets say -10 to +10. Then the graph will be plot always with the same scale.</p>
  
  <p>Is there any way to do that? </p>
  
  <p>The XAML code for the graph is this:</p>
  
  <pre><code>    &lt;d3:ChartPlotter
          Name="gyroGraph"
          Margin="21,5,10,0"
          Grid.ColumnSpan="2"
          Background="White"
          Grid.Row="1"
          LegendVisibility="Collapsed"
          NewLegendVisible="False"
          MainHorizontalAxisVisibility="Collapsed"
          MainVerticalAxisVisibility="Collapsed"&gt;
          &lt;d3:VerticalAxis
              FontSize="8" /&gt;
          &lt;d3:Header
              Content="Angular Velocity"
              FontSize="11" /&gt;
      &lt;/d3:ChartPlotter&gt;
  </code></pre>
  
  <p>Thanks and best regards,
  Rodrigo Basniak</p>