Skip to content

Allow dynamic bubble chart point styles#4665

Closed
kesmit13 wants to merge 2 commits intochartjs:masterfrom
kesmit13:bubble-point-style
Closed

Allow dynamic bubble chart point styles#4665
kesmit13 wants to merge 2 commits intochartjs:masterfrom
kesmit13:bubble-point-style

Conversation

@kesmit13
Copy link

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

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.

3 participants