Update docs for X axis formatting.
</td>
</tr>
<tr>
+ <td><strong>xAxisLabelFormatter</strong></td>
+ <td><code>function(date, granularity)</code></td>
+ <td><code>Dygraph.dateAxisFormatter</code></td>
+ <td>Function to call to format values along the x axis.
+ <div class="tests">Tests: <a href="tests/x-axis-formatter.html">xAxisLabelFormatter</a></div>
+ </td>
+ <tr>
<td><strong>rightGap</strong></td>
<td><code>integer</code></td>
<td><code></code></td>
if (granularity >= Dygraph.MONTHLY) {
return date.strftime('%b %y');
} else {
- var frac = date.getHours() * 3600 + date.getMinutes() * 60 + date.getSeconds();
+ var frac = date.getHours() * 3600 + date.getMinutes() * 60 + date.getSeconds() + date.getMilliseconds();
if (frac == 0 || granularity >= Dygraph.DAILY) {
return new Date(date.getTime() + 3600*1000).strftime('%d%b');
} else {
<html>
<head>
- <title>hourly</title>
+ <title>X Axis Label Formatting</title>
<!--[if IE]>
<script type="text/javascript" src="excanvas.js"></script>
<![endif]-->