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

Having a problem where the text starts at center instead of centered at center. #29

Open
ys8672 opened this issue Sep 2, 2020 · 0 comments

Comments

@ys8672
Copy link

ys8672 commented Sep 2, 2020

Here is a picture for reference.

bubble chart problem

As you can see, all the text for the bubble charts starts at the middle. The examples I have seen all have text centered at the middle. The code, besides my own data which I passed my own list object in the data parameter, is literally copy + pasted from the example in the README. Also, I did a little debugging and found out this text starting at the middle apparently happened when I put the BubbleChart inside a ReactJS Carousel.Item, but only if the second item onward. But it is also not consistent either. I have no idea what is causing this. If I put it outside a Carousel and other places, the text is centered and it seems almost arbirtrary tbh.

Update #1: I don't know if the problem is on the bubble chart or other components in ReactJS, but when I do a componentDidMount set to true and do not load the chart dynamically, the chart text is centered correctly. When I remove that, the chart text starts at middle. Not sure why it does that.

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

No branches or pull requests

1 participant