mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-10 21:36:34 +01:00
Don't draw a path to null
This commit is contained in:
parent
a9076b2cc4
commit
96cb339717
@ -129,7 +129,7 @@ class Morris.Line extends Morris.Grid
|
||||
generatePaths: ->
|
||||
@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
|
||||
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
|
||||
Morris.Line.createPath coords, smooth, @bottom
|
||||
|
Loading…
Reference in New Issue
Block a user