You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❗ Not having this functionality is kind of a deal breaker for me, as I have lots of formatting helpers made with Ruby, and replicating all that logic as morris.js formatters would be redundant and too costly for my project.
If adding this functionality makes sense to you guys, I'd be more than happy to submit a pull request with the necessary changes.
The text was updated successfully, but these errors were encountered:
Here: https://github.com/oesmith/morris.js/blob/master/lib/morris.donut.coffee#L97
The parameter passed to the formatter is the value itself, but ideally the formatter should be aware of the complete segment data object.
This would be useful if I want to use my own non-js helpers, instead of replicating them as js formatters. With Ruby, an example would be:
Now if I wanted to use that helper as the formatter, I could pass it in the segment data:
❗ Not having this functionality is kind of a deal breaker for me, as I have lots of formatting helpers made with Ruby, and replicating all that logic as morris.js formatters would be redundant and too costly for my project.
If adding this functionality makes sense to you guys, I'd be more than happy to submit a pull request with the necessary changes.
The text was updated successfully, but these errors were encountered: