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

fix(#8327): Boxplot set null quantitative to 0 #8409

Merged
merged 6 commits into from
Sep 13, 2022
Merged

Conversation

yhoonkim
Copy link
Contributor

@yhoonkim yhoonkim commented Sep 12, 2022

fix #8327

πŸ“¦ Published PR as canary version: 5.5.1--canary.8409.94b06f4.0

✨ Test out this PR locally via:

npm install vega-lite@5.5.1--canary.8409.94b06f4.0
# or 
yarn add vega-lite@5.5.1--canary.8409.94b06f4.0

@yhoonkim yhoonkim changed the title Yh/boxplot invalid fix(#8327): Boxplot set null quantitative to 0 Sep 12, 2022
@yhoonkim yhoonkim marked this pull request as ready for review September 12, 2022 17:05
vega: 5.22.1
vega-lite: 5.5.0
vega-embed: 6.21.0
vega-tooltip: 0.28.0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure if I should include this file.

Copy link
Member

Choose a reason for hiding this comment

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

yeah, please remove it. It doesn't seem relevant to this PR.

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.

LGTM. Please address these minor comments and feel free to to "squash and merge".

@@ -102,6 +103,8 @@ export function normalizeBoxPlot(
config
);

const invalid = markDef.invalid || null; //|| null to respect the existed default behavior
Copy link
Member

Choose a reason for hiding this comment

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

Let's remove || null; //|| null to respect the existed default behavior
since the doc has been saying that filter is the default (for all marks).

So the existing behavior to include null by default was a bug.

src/mark.ts Outdated
@@ -75,7 +75,16 @@ export interface TooltipContent {
/** @hidden */
export type Hide = 'hide';

export interface VLOnlyMarkConfig<ES extends ExprRef | SignalRef> extends ColorMixins<ES> {
export interface MarkInvalid {
Copy link
Member

Choose a reason for hiding this comment

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

For consistency, please rename to MarkInvalidMixins.

vega: 5.22.1
vega-lite: 5.5.0
vega-embed: 6.21.0
vega-tooltip: 0.28.0
Copy link
Member

Choose a reason for hiding this comment

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

yeah, please remove it. It doesn't seem relevant to this PR.

@yhoonkim yhoonkim merged commit 62bee7e into next Sep 13, 2022
@yhoonkim yhoonkim deleted the yh/boxplot-invalid branch September 13, 2022 01:43
BradyJ27 pushed a commit to BradyJ27/vega-lite that referenced this pull request Oct 19, 2023
* add example

* Take markDef.invalid into boxplot's markdef.

* chore: update schema [CI]

* update doc

* refactor

* chore: update examples [CI]

Co-authored-by: GitHub Actions Bot <vega-actions-bot@users.noreply.github.com>
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.

Boxplot set null quantitative to 0
2 participants