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(ChartScatter): consider bubbleProperty if it is set #9282

Merged

Conversation

andreasgerstmayr
Copy link
Contributor

@andreasgerstmayr andreasgerstmayr commented Jun 19, 2023

What: bubbleProperty of VictoryScatter is only considered if the size prop is undefined (see https://github.com/FormidableLabs/victory/blob/bbc1e2a39448d7fb6724f916afacf5f6eab7d1b3/packages/victory-scatter/src/helper-methods.tsx#L35-L43)

This PR updates the code to set the default size function only if bubbleProperty is not set.

closes: #9504

bubbleProperty is only considered if the size prop is undefined, therefore set
default size function only if bubbleProperty is not set.

Ref. https://github.com/FormidableLabs/victory/blob/bbc1e2a39448d7fb6724f916afacf5f6eab7d1b3/packages/victory-scatter/src/helper-methods.tsx#L35-L43
Signed-off-by: Andreas Gerstmayr <agerstmayr@redhat.com>
@patternfly-build
Copy link
Contributor

patternfly-build commented Jun 19, 2023

@tlabaj tlabaj requested a review from dlabrecq August 14, 2023 19:54
@dlabrecq
Copy link
Member

@tlabaj Do we need an issue for this?

@tlabaj
Copy link
Contributor

tlabaj commented Aug 15, 2023

@tlabaj Do we need an issue for this?

@dlabrecq yes we do.

@tlabaj
Copy link
Contributor

tlabaj commented Aug 15, 2023

@andreasgerstmayr can you please open an issue for tracking so we can merge this one.

@andreasgerstmayr
Copy link
Contributor Author

hi @tlabaj, I created #9504 for it.

Thanks for the review!

@tlabaj tlabaj merged commit 6020af4 into patternfly:main Aug 16, 2023
nicolethoen pushed a commit to Kells512/patternfly-react that referenced this pull request Sep 1, 2023
)

bubbleProperty is only considered if the size prop is undefined, therefore set
default size function only if bubbleProperty is not set.

Ref. https://github.com/FormidableLabs/victory/blob/bbc1e2a39448d7fb6724f916afacf5f6eab7d1b3/packages/victory-scatter/src/helper-methods.tsx#L35-L43
Signed-off-by: Andreas Gerstmayr <agerstmayr@redhat.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.

Bug - ChartScatter - bubbleProperty is ignored
5 participants