var d3_time_scaleUTCMethods = [ [d3.time.seconds.utc, 1], [d3.time.seconds.utc, 5], [d3.time.seconds.utc, 15], [d3.time.seconds.utc, 30], [d3.time.minutes.utc, 1], [d3.time.minutes.utc, 5], [d3.time.minutes.utc, 15], [d3.time.minutes.utc, 30], [d3.time.hours.utc, 1], [d3.time.hours.utc, 3], [d3.time.hours.utc, 6], [d3.time.hours.utc, 12], [d3.time.days.utc, 1], [d3.time.days.utc, 2], [d3.time.weeks.utc, 1], [d3.time.months.utc, 1], [d3.time.months.utc, 3], [d3.time.years.utc, 1] ]; var d3_time_scaleUTCFormats = [ [d3.time.format.utc("%Y"), function(d) { return true; }], [d3.time.format.utc("%B"), function(d) { return d.getUTCMonth(); }], [d3.time.format.utc("%b %d"), function(d) { return d.getUTCDate() != 1; }], [d3.time.format.utc("%a %d"), function(d) { return d.getUTCDay() && d.getUTCDate() != 1; }], [d3.time.format.utc("%I %p"), function(d) { return d.getUTCHours(); }], [d3.time.format.utc("%I:%M"), function(d) { return d.getUTCMinutes(); }], [d3.time.format.utc(":%S"), function(d) { return d.getUTCSeconds() || d.getUTCMilliseconds(); }] ]; var d3_time_scaleUTCFormat = d3_time_scaleFormat(d3_time_scaleUTCFormats); d3.time.scale.utc = function() { return d3_time_scale(d3.scale.linear(), d3_time_scaleUTCMethods, d3_time_scaleUTCFormat); };