mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-10 21:36:34 +01:00
fixed the code to use ykeys for smooth instead of seriesLabels
This commit is contained in:
parent
9773a697b3
commit
b8674f3869
@ -223,7 +223,7 @@ class Morris.Line
|
||||
shouldDrawSmooth: (series) =>
|
||||
if typeof @options.smooth is 'boolean' && @options.smooth
|
||||
true
|
||||
else if typeof @options.smooth is 'object' and $.inArray(@seriesLabels[series], @options.smooth) > -1
|
||||
else if typeof @options.smooth is 'object' and $.inArray(@options.ykeys[series], @options.smooth) > -1
|
||||
true
|
||||
else
|
||||
false
|
||||
|
@ -559,7 +559,7 @@
|
||||
Line.prototype.shouldDrawSmooth = function(series) {
|
||||
if (typeof this.options.smooth === 'boolean' && this.options.smooth) {
|
||||
return true;
|
||||
} else if (typeof this.options.smooth === 'object' && $.inArray(this.seriesLabels[series], this.options.smooth) > -1) {
|
||||
} else if (typeof this.options.smooth === 'object' && $.inArray(this.options.ykeys[series], this.options.smooth) > -1) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
2
morris.min.js
vendored
2
morris.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user