Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for currency and percentages #74

Closed
ankane opened this issue Dec 5, 2016 · 7 comments
Closed

Add support for currency and percentages #74

ankane opened this issue Dec 5, 2016 · 7 comments

Comments

@ankane
Copy link
Owner

ankane commented Dec 5, 2016

A few possible designs

{prefix: "$"}
{suffix: "%"}
@ankane ankane changed the title Add yformat option Add support for currency and percentages Jan 8, 2017
@amingilani
Copy link

Also add support for commas in large numbers

@rept
Copy link

rept commented Nov 17, 2017

Indeed, other parameters should be decimal_symbol, thousand_separator. Is there currently any way of doing this (with Chartjs) or none at all?

@rept
Copy link

rept commented Nov 17, 2017

Another one could be decimal_places which would solve this one too: ankane/chartkick#301

@ankane
Copy link
Owner Author

ankane commented Feb 21, 2018

This has landed on master for Chart.js, along with delimiter (thousands separator) and separator (decimal separator).

@rept
Copy link

rept commented Feb 21, 2018

@ankane that is some excellent news! Will test as soon as this is released. Thanks!

@ankane
Copy link
Owner Author

ankane commented Feb 21, 2018

Just fyi, I changed the separator names to thousands and decimal to make it more clear and easier to spell.

@ankane
Copy link
Owner Author

ankane commented Feb 22, 2018

Just released 2.3.0 🎉

@ankane ankane closed this as completed Feb 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants