Skip to content

Commit

Permalink
non-invasive solution for morrisjs#138, with mache:spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Chwedziak committed Dec 13, 2012
1 parent ff9856e commit 381be72
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/morris.grid.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class Morris.Grid extends Morris.EventEmitter
gridStrokeWidth: 0.5
gridTextColor: '#888'
gridTextSize: 12
yLabelFormat: (label, prefix, suffix) -> "#{prefix}#{Morris.commas(label)}#{suffix}"
numLines: 5
padding: 25
parseTime: true
Expand Down Expand Up @@ -254,7 +255,7 @@ class Morris.Grid extends Morris.EventEmitter
# @private
#
yLabelFormat: (label) ->
"#{@options.preUnits}#{Morris.commas(label)}#{@options.postUnits}"
@options.yLabelFormat.call(@, label, @options.preUnits, @options.postUnits)


# Parse a date into a javascript timestamp
Expand Down
5 changes: 4 additions & 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 381be72

Please sign in to comment.