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

Allow dynamic bubble chart point styles #4665

Closed
wants to merge 2 commits into from

Conversation

kesmit13
Copy link

Bubble charts did not allow setting the pointStyle attribute when updating a dataset.

@@ -80,6 +80,7 @@ module.exports = function(Chart) {
y: reset ? yScale.getBasePixel() : yScale.getPixelForValue(data, index, dsIndex),
// Appearance
radius: reset ? 0 : custom.radius ? custom.radius : me.getRadius(data),
pointStyle: reset ? pointElementOptions.pointStyle : custom.pointStyle ? custom.pointStyle : helpers.getValueAtIndexOrDefault(dataset.pointStyle, index, pointElementOptions.pointStyle),
Copy link
Member

Choose a reason for hiding this comment

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

Does this use all the same point styles as the line chart? If so, there needs to be tests and documentation for this change

@simonbrunel
Copy link
Member

Since I was modifying the update of the bubble chart and rewriting the associated doc, I added this feature the same PR.

@kesmit13
Copy link
Author

Works for me. I'm not concerned about how it gets in, as long as I get to use it.

@simonbrunel
Copy link
Member

Sounds good, would you mind to checkout my feature branch and test the associated PR?

@kesmit13
Copy link
Author

It's working with my use-cases.

@simonbrunel
Copy link
Member

Implemented in #4671

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants