Fix chart bug with 0-prefixed dates

This commit is contained in:
Joseph Schorr 2014-01-21 17:07:22 -05:00
parent 3864fc3e88
commit ca9317c71a

View file

@ -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) {