mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-13 07:11:12 +01:00
Allow display of zero values
This commit is contained in:
parent
942e121caa
commit
e4edc9aed0
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
2
morris.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue