Closed jantolg closed 8 months ago
Totals | |
---|---|
Change from base Build 7956818395: | 0.04% |
Covered Lines: | 2630 |
Relevant Lines: | 3491 |
Visit the preview URL for this PR (updated for commit abd2547):
https://cartodb-fb-storybook-react-dev--pr843-feat-add-central-nmfupptg.web.app
(expires Thu, 07 Mar 2024 16:42:13 GMT)
🔥 via Firebase Hosting GitHub Action 🌎
Sign: 517cc4d31d7e09cf277774e034094b67c301cd4c
The approach LGTM, just 2 caveats:
Thx for the help here @jantolg
I've just to add an example of storybook, a new changelog entry, and a default behaviour of formatter based on useIntl.formatNumber
I close this PR.
Upon reviewing the behavior, maybe using the same formatter for units and percentage values is not a good approach, as it represents two different types of values. After discussing this issue with @aaranadev and @menusal, we believe it would be better to have a separate formatter for each type of value.
I have created a new PR with these changes to avoid mixing different approaches.
NOTE: It might be worth considering a standardized approach for using formatters, perhaps by unifying all formatters into a single property or something similar. This would be a good topic to open a discussion about for future C4R versions
Continue in this new PR #844
Description
Add to central text in PieChartUI the same text formatter
Acceptance
Please describe how to validate the feature or fix