-
Notifications
You must be signed in to change notification settings - Fork 31
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
Separate large numbers in the table with commas #54
Comments
i think to make things easy for you you will have to write a custom data searching method and format the numbers the way you want before passing it onto the gem for rendering. If you need assistance on how to go about that let me know |
Thank you @nsoseka. How would I go about that? |
So you check out the docs on how to setup custom data methods. |
Thanks for pointing that out. In app/services/my_data_methods.rb I have used this method: Not much success though |
okay require the number_to_currency_helper
Define a custom
This method you can then call within your custom data method. If you need more support you can post your entire data method if you will, so that i can show you how to navigate using the method in it |
Thanks a lot! After requiring the helper, here is the method in my_data_methods.rb:
|
This method returns the value of |
Hi, so I recently returned to this but yet to get a solution. I think am yet to get the hang of it.
My
In the view:
I think the only task is in the data method part. Thanks |
Hi, is there a way to display large figures in the table with a comma to make them easy to understand at first glace? I know in the views I could have used the number_with_delimiter method, but am not sure how that works with the charts.
The text was updated successfully, but these errors were encountered: