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

D3 custom formatter #3268

Merged
merged 27 commits into from
Oct 19, 2023
Merged

D3 custom formatter #3268

merged 27 commits into from
Oct 19, 2023

Conversation

bcolloran
Copy link
Contributor

@bcolloran bcolloran commented Oct 18, 2023

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:

image

image

- associated cleanups
- remove an old `dev` folder item pointing at missing files
@bcolloran bcolloran requested a review from ericpgreen2 October 18, 2023 22:09
Copy link
Contributor

@ericpgreen2 ericpgreen2 left a 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.

Copy link
Contributor

@ericpgreen2 ericpgreen2 left a 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

@ericpgreen2 ericpgreen2 mentioned this pull request Oct 19, 2023
38 tasks
Copy link
Contributor

@ericpgreen2 ericpgreen2 left a 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!

@bcolloran bcolloran merged commit 07d69b5 into main Oct 19, 2023
3 checks passed
@bcolloran bcolloran deleted the d3-custom-formatter branch October 19, 2023 21:01
bcolloran added a commit that referenced this pull request Oct 19, 2023
bcolloran added a commit that referenced this pull request Oct 19, 2023
@bcolloran bcolloran mentioned this pull request Oct 19, 2023
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

Successfully merging this pull request may close these issues.

2 participants