Skip to content

generic formatter for text channels #794

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

Merged
merged 2 commits into from
Mar 2, 2022
Merged

generic formatter for text channels #794

merged 2 commits into from
Mar 2, 2022

Conversation

Fil
Copy link
Contributor

@Fil Fil commented Mar 2, 2022

fixes #793

@Fil Fil requested a review from mbostock March 2, 2022 12:03
Copy link
Member

@mbostock mbostock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It’s a bit of a bummer that we now have to check every value, but it’s definitely better than crashing and I’d guess the overhead is likely negligible.

I renamed it to formatDefault and added a TODO since in the future, we’ll need to avoid this sort of pattern when Plot supports a top-level locale option #384. But we already have that problem so it’s not a blocker. 👍

@mbostock mbostock merged commit 93acd82 into main Mar 2, 2022
@mbostock mbostock deleted the fil/numeric-mix-text branch March 2, 2022 18:43
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.

Plot.text formatting crashes on mixed-type channel
2 participants