title: Bar width problem in flot
body: <p>I have a chart, that displays bars which represent rainfall in 24h. Now the first problem I had, was the default 1px width for bars in flot, see this example:</p>
  
  <p><img src="https://i.stack.imgur.com/1wRgv.png" alt="alt text"></p>
  
  <p>I searched for a solution and found that specifing barwidth like this:</p>
  
  <pre><code>bars: { 
          show: true,
          barWidth : 60*60*1000 //1h
      }
  </code></pre>
  
  <p>solves the problem. Now that actually works, but with one bad result. On my example (chart that displays 24 rainfall discretly every one hour) now this happens:</p>
  
  <p><img src="https://i.stack.imgur.com/yWC49.png" alt="alt text"></p>
  
  <p>As you can see from first example, where bars are 1px width, the time goes from 13:00 previous day to 13:00 next day. Now when bar width are fixed, the time goes from 13:00 to 14:00 for some reason. Now I have tried diffrent barWidth setting, for example 50*60*1000, but that does not scale right plus the margin starts to appear beetwen each bars.</p>
  
  <p>Now I would like to know how to fix this issue, that the timeline would go as in first example and the bars would have 1 hour width?</p>