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 currency formatting for chart tooltips #24

Open
pderksen opened this issue Sep 19, 2016 · 4 comments
Open

Add currency formatting for chart tooltips #24

pderksen opened this issue Sep 19, 2016 · 4 comments

Comments

@pderksen
Copy link

Probably after #14

@scottopolis
Copy link
Owner

Can you give me more detail here?

@pderksen
Copy link
Author

Sorry for the vagueness. I was referring to the tooltips in the "Earnings by" pie charts. The figures here should be wrapped with appropriate currency formatting such as $1,234.56.

For example, this tooltip number should show up as $794.60.

image

@scottopolis
Copy link
Owner

Gotcha, will do

@Netzberufler
Copy link
Contributor

ChartJS needs unformatted number values to display the pie charts properly, so it is not possible to change the currency formatting in PHP (I tried that). I guess this needs to be done in JavaScript with a custom Tooltip Template for the ChartJS plugin.

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

No branches or pull requests

3 participants