Allow display of zero values

This commit is contained in:
tankist 2012-05-15 22:55:27 +03:00
parent 942e121caa
commit e4edc9aed0
3 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ class Morris.Line
for ykey in @options.ykeys
series_data = []
for d in @options.data
series_data.push(d[ykey] or null)
series_data.push(d[ykey] or 0)
@series.push(series_data)
# translate x labels into nominal dates

View File

@ -99,7 +99,7 @@
_ref1 = this.options.data;
for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
d = _ref1[_j];
series_data.push(d[ykey] || null);
series_data.push(d[ykey] || 0);
}
this.series.push(series_data);
}

2
morris.min.js vendored

File diff suppressed because one or more lines are too long