-
Notifications
You must be signed in to change notification settings - Fork 125
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
D3 custom formatter #3268
D3 custom formatter #3268
Conversation
…into d3-custom-formatter
…le, does not work with d3 formatter enabled
- associated cleanups - remove an old `dev` folder item pointing at missing files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, this is great! I have a few comments I'll leave in-line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we put all the formatting utilities into one place? Maybe into lib/number-formatting
? E.g., I see this PR touches:
features/dashboards/humanize-numbers.ts
lib/formatters.ts
lib/number-formatting/format-measure-value.ts
web-common/src/features/dashboards/leaderboard/LeaderboardHeader.svelte
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great. IMO next thing that this feature needs is YAML validation (from the Platform side).
Approved!
This reverts commit 07d69b5.
This PR enables the
format_d3
option in the metrics definition, as well as simplifying and cleaning up a bunch of code along the way.Example with an absurd d3 format string: