Skip to content

Conversation

@tiraeth
Copy link
Contributor

@tiraeth tiraeth commented Dec 13, 2012

Solution for #138. What's best (and I hope you're happy to see it) I have included a unit test and will try to make it a habit when sending PRs.

Usage: Provide options.yLabelFormat callback accepting original label, prefix, and suffix and return a formatted label. By default, the body of Morris.Grid.yLabelFormat is put there.

Cheers!

@adampope
Copy link

Awesome, that's exactly what I was after! Hope to see this merged soon :)

@oesmith oesmith merged commit 24f11c6 into morrisjs:master Dec 20, 2012
@oesmith
Copy link
Contributor

oesmith commented Dec 20, 2012

Merged! 👍

I've removed the prefix and suffix options from the formatter callback -- there's little point in pushing user-supplied data back in the callback arguments when it can be whatever the user wants within the callback itself!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants