title: JfreeChart: Scroll XYBarChart Horizontally - (chart translation and navigation)
body: <p>I am trying to scroll my XYBarChart horizontally, I am following one of the JfreeChart's Demo "TranslateDemo1.java" in which the source code you can find here: </p>
  
  <p><a href="http://code.google.com/p/cori-chenxx/source/browse/aliper/trunk/aliper-core/src/test/java/com/alibaba/aliper/TranslateDemo1.java?spec=svn148&amp;r=148" rel="nofollow noreferrer">http://code.google.com/p/cori-chenxx/source/browse/aliper/trunk/aliper-core/src/test/java/com/alibaba/aliper/TranslateDemo1.java?spec=svn148&amp;r=148</a></p>
  
  <p>The source code works fine for a "TimeSeriesChart". </p>
  
  <p>However I tried with "XYBarChart" and WHEN I SLIDE THE BAR the behavior is not the same.</p>
  
  <p>Just to be clear I replaced the line #157 with the following source code:</p>
  
  <pre><code>JFreeChart chart1= ChartFactory.createXYBarChart(
                  "Title", 
                  null, 
                  true, 
                  "Ylabel", 
                  xyDatasetTranslating, 
                  PlotOrientation.VERTICAL, 
                  true, 
                  true, 
                  false);
  </code></pre>
  
  <p>Does anyone know why the application is behaving in this way? and how I could possibly fix it.</p>
  
  <p>Thanks,</p>