-
Notifications
You must be signed in to change notification settings - Fork 64
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
Implement format attribute #826
Comments
Thinking through this a little, this would be something that's set at the |
Aha, but what if you want a different format for different widgets or popups? |
Good question 🤔 |
OK, so we can add the format attribute to the layer, but also to the legend, popups and widgets. Layer(
legend={
....
format='...'
},
popup={
'hover': [{
....
format='...'
}, ...]
'click': ....
},
widgets=[{
....
format='...'
}, ...]
format='...'
) |
It would be really great if you could customize the number format in legends, popups, etc. For example, sometimes the scientific notation introduced by #818 is not desired. Or perhaps you want to round a number or add a currency symbol in front of the number. You should be able to provide some kind of string to indicate how you'd like the numbers to be formatted. |
Fixed in #1626, CartoDB/airship#689. Release 1.0.3 |
In:
https://github.com/d3/d3-format
The text was updated successfully, but these errors were encountered: