Skip to content

Commit

Permalink
You can now specify segment color in data parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
stlk committed Sep 11, 2013
1 parent b98ae8a commit e31c466
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/morris.donut.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Morris.Donut extends Morris.EventEmitter
next = last + min + C * (value / total)
seg = new Morris.DonutSegment(
cx, cy, w*2, w, last, next,
@options.colors[idx % @options.colors.length],
@data[i].color || @options.colors[idx % @options.colors.length],
@options.backgroundColor, idx, @raphael)
seg.render()
@segments.push seg
Expand Down
2 changes: 1 addition & 1 deletion morris.js

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

Loading

0 comments on commit e31c466

Please sign in to comment.