mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-14 07:41:11 +01:00
Don't draw a path to null
This commit is contained in:
parent
a9076b2cc4
commit
96cb339717
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ class Morris.Line extends Morris.Grid
|
||||||
generatePaths: ->
|
generatePaths: ->
|
||||||
@paths = for i in [0...@options.ykeys.length]
|
@paths = for i in [0...@options.ykeys.length]
|
||||||
smooth = if typeof @options.smooth is "boolean" then @options.smooth else @options.ykeys[i] in @options.smooth
|
smooth = if typeof @options.smooth is "boolean" then @options.smooth else @options.ykeys[i] in @options.smooth
|
||||||
coords = ({x: r._x, y: r._y[i]} for r in @data when r._y[i] isnt undefined)
|
coords = ({x: r._x, y: r._y[i]} for r in @data when r._y[i]?)
|
||||||
|
|
||||||
if coords.length > 1
|
if coords.length > 1
|
||||||
Morris.Line.createPath coords, smooth, @bottom
|
Morris.Line.createPath coords, smooth, @bottom
|
||||||
|
|
Loading…
Reference in a new issue