title: Problems formatting dates with Dygraphs
body: <p>I am plotting data from a CSV files with Dygraphs. The dates are UNIX timestamps.</p>
  
  <p>Currently I am parsing and formatting the dates like this:</p>
  
  <pre><code>    ...
      axes: {
        x : {
          valueFormatter: Dygraph.dateString_,
          ticker: Dygraph.dateTicker
        }
      },
      ...
  </code></pre>
  
  <p>Here are the first lines of a typical CSV file:</p>
  
  <pre><code>x,ATLAS.HLTSV.AvailableCores.DF.HLTSV.Events
  1392052678784,0.0
  1392052703784,0.0
  1392052708784,30.0
  1392052713784,845.0
  1392052718784,1313.0
  1392052723784,1313.0
  1392052728784,1431.0
  ...
  </code></pre>
  
  <p>This gives me the following result:</p>
  
  <p><img src="https://i.stack.imgur.com/BK5gM.png" alt="graph"></p>
  
  <p><strong>The rendered dates are correct, but I have 2 problems</strong></p>
  
  <ul>
  <li><p>First the dates are too long, and clearly break the graph layout.</p></li>
  <li><p>Second the granularity is fixed. I would like it to changed based on the zoom level, such as in this example: <a href="http://dygraphs.com/tests/demo.html" rel="nofollow noreferrer">http://dygraphs.com/tests/demo.html</a></p></li>
  </ul>
  
  <p>How to fix this?</p>