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

Feat: allow for normalizedNumberFormat for stack: "normalize" tooltips #8303

Closed
wants to merge 10 commits into from

Conversation

lsh
Copy link
Member

@lsh lsh commented Jul 20, 2022

This PR addresses #8300. As mentioned in the referenced issue, the spelling of the normalizedNumberFormat field may be subject to change (per feedback of @domoritz @jheer).

Important: The normalizedNumberFormat should only be applied to tooltips that are stack: "normalize". Furthermore, this PR intentionally does not implement the normalizedNumberFormat[Type] encoding for src/compile/legend/encode.ts because @kanitw and I could not think of a non positional situation where stack is used.

@lsh lsh requested review from kanitw and domoritz July 20, 2022 00:32
@lsh
Copy link
Member Author

lsh commented Jul 20, 2022

Note: this PR will either need to rebase if #8302 is merged first, or vice versa.

@kanitw
Copy link
Member

kanitw commented Jul 21, 2022

@kanitw and I could not think of a non positional situation where stack is used.

Looking at the code more, it's also worth noting that stack?: is defined in PositionBaseMixins and thus won't be used by non-position encoding.

Copy link
Member

@kanitw kanitw left a comment

Choose a reason for hiding this comment

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

Add some tests so codecov won't complain?

@lsh lsh requested a review from kanitw July 21, 2022 19:47
@lsh
Copy link
Member Author

lsh commented Jul 22, 2022

Closing in favor of #8307

@lsh lsh closed this Jul 22, 2022
@lsh lsh deleted the percent-formatter branch July 22, 2022 18:46
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.

None yet

2 participants