Skip to content

Commit 8bc716f

Browse files
committed
Update internal data array when using setData (fixes morrisjs#213).
1 parent 6220c40 commit 8bc716f

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

lib/morris.grid.coffee

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ class Morris.Grid extends Morris.EventEmitter
9797
# Update the data series and redraw the chart.
9898
#
9999
setData: (data, redraw = true) ->
100+
@options.data = data
101+
100102
if !data? or data.length == 0
101103
@data = []
102104
@raphael.clear()

morris.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)