From ca9317c71a2803a367661f840f9f8e649c774785 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 21 Jan 2014 17:07:22 -0500 Subject: [PATCH] Fix chart bug with 0-prefixed dates --- static/js/graphing.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/graphing.js b/static/js/graphing.js index 396228ab0..ba4a9b68f 100644 --- a/static/js/graphing.js +++ b/static/js/graphing.js @@ -1463,6 +1463,10 @@ LogUsageChart.prototype.buildData_ = function(logs) { * Renders the tooltip when hovering over an element in the chart. */ LogUsageChart.prototype.renderTooltip_ = function(d, e) { + if (e[0] == '0') { + e = e.substr(1); + } + var key = d + '_' + e; var entry = this.entries_[key]; if (!entry) {