Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/dump247/morris.js into du…
Browse files Browse the repository at this point in the history
…mp247-master

Conflicts:
	morris.min.js
  • Loading branch information
oesmith committed Jun 26, 2012
2 parents 2c81ad7 + df2925d commit 67251e8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
5 changes: 2 additions & 3 deletions lib/morris.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class Morris.Line
#
drawSeries: ->
for i in [@seriesCoords.length-1..0]
coords = @seriesCoords[i]
coords = $.map(@seriesCoords[i], (c) -> c)
if coords.length > 1
path = @createPath coords, @options.marginTop, @left, @options.marginTop + @height, @left + @width
@r.path(path)
Expand All @@ -287,9 +287,8 @@ class Morris.Line

# create a path for a data series
#
createPath: (all_coords, top, left, bottom, right) ->
createPath: (coords, top, left, bottom, right) ->
path = ""
coords = $.map(all_coords, (c) -> c)
if @options.smooth
grads = @gradients coords
for i in [0..coords.length-1]
Expand Down
11 changes: 5 additions & 6 deletions morris.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 67251e8

Please sign in to comment.