Fix chart bug with 0-prefixed dates
This commit is contained in:
parent
3864fc3e88
commit
ca9317c71a
1 changed files with 4 additions and 0 deletions
|
@ -1463,6 +1463,10 @@ LogUsageChart.prototype.buildData_ = function(logs) {
|
||||||
* Renders the tooltip when hovering over an element in the chart.
|
* Renders the tooltip when hovering over an element in the chart.
|
||||||
*/
|
*/
|
||||||
LogUsageChart.prototype.renderTooltip_ = function(d, e) {
|
LogUsageChart.prototype.renderTooltip_ = function(d, e) {
|
||||||
|
if (e[0] == '0') {
|
||||||
|
e = e.substr(1);
|
||||||
|
}
|
||||||
|
|
||||||
var key = d + '_' + e;
|
var key = d + '_' + e;
|
||||||
var entry = this.entries_[key];
|
var entry = this.entries_[key];
|
||||||
if (!entry) {
|
if (!entry) {
|
||||||
|
|
Reference in a new issue