};
/**
- * @private
* Return a string version of a JS date for a value label. This respects the
* labelsDateUTC option.
* @param {Date} date The date to be formatted
* @param {Dygraph} opts An options view
+ * @private
*/
Dygraph.dateValueFormatter = function(d, opts) {
return Dygraph.dateString_(d, opts('labelsDateUTC'));
<hr/>
<div id="chart2"></div>
- <p>This chart shows a continuous line going across the "fall back" EST/EDT event. You may need to switch your computer's time zone to Eastern to see this. The x-axis tick marks go from 01:00 → 01:55 and then back to 01:00.</p>
+ <p>This chart shows a continuous line going across the "fall back" EST/EDT event.
+ You may need to switch your computer's time zone to Eastern to see this.
+ The x-axis tick marks go from 01:00 → 01:55 and then back to 01:00.</p>
<hr/>
<div id="chart3"></div>
<hr/>
<div id="chart4"></div>
- <p>This chart shows a continuous series which crosses a "spring forward". The x-axis ticks should skip from 1:55AM to 3:00AM.</p>
+ <p>This chart shows a continuous series which crosses a "spring forward".
+ The x-axis ticks should skip from 1:50AM to 3:00AM.</p>
<script type="text/javascript">
g = new Dygraph(
// Generate data which crosses the EST/EDT boundary.
var dst_data = [];
- var base_ms = 1383454200000;
- for (var x = base_ms; x < base_ms + 1000 * 60 * 80; x += 1000) {
+ var base_ms = 1383453600000;
+ for (var x = base_ms; x < base_ms + 1000 * 60 * 160; x += 1000) {
dst_data.push([new Date(x), x]);
}
}
);
- var base_ms_spring = 1299999000000;
+ var base_ms_spring = 1299997800000;
var dst_data_spring = [];
- for (var x = base_ms_spring; x < base_ms_spring + 1000 * 60 * 80; x += 1000) {
+ for (var x = base_ms_spring; x < base_ms_spring + 1000 * 60 * 120; x += 1000) {
dst_data_spring.push([new Date(x), x]);
}