FormidableLabs / victory

A collection of composable React components for building interactive data visualizations
http://commerce.nearform.com/open-source/victory/
Other
11.03k stars 524 forks source link

Updating version to 37.1.1 - viewBox issue #2895

Open vuksharu93 opened 2 months ago

vuksharu93 commented 2 months ago

Is there an existing issue for this?

Code of Conduct

Victory version

37.1.1

Code Sandbox link

No response

Bug report

After updating the version from 37.0.2 to 37.1.1 none of the charts are displayed and I'm getting the warning: 
Invalid `viewBox` prop:0 0 undefined undefined

Steps to reproduce

No response

Expected behavior

No response

Actual behavior

No response

Environment

- Device: iPhone SE / Samsung Galaxy A51
- OS: iOS version 17.5.1 / Android version 13
- Node: 18.17.0
- npm:
vuksharu93 commented 2 months ago

image

roqmarcelo commented 2 months ago

I am facing the same issue. I thought of adding width and height to the container component props, but it did not work.

victory-ci commented 2 months ago

Hi there! It looks like your issue requires a minimal reproducible example, but it is invalid or absent. Please prepare such an example and share it with us.

The best way to get attention to your issue is to provide a clean and easy way for a developer to reproduce the issue on their own machine. Please do not provide your entire project, or a project with more code than is necessary to reproduce the issue.

A side benefit of going through the process of narrowing down the minimal amount of code needed to reproduce the issue is that you may get lucky and discover that the bug is due to a mistake in your application code that you can quickly fix on your own.

Resources

adamhari commented 2 months ago

Experiencing the same issue. It seems to be coming from the container and, in my case, removing the containerComponent prop fixes the warning and layout issues. Can confirm that downgrading victory deps to 37.0.2 also fixes it.

adamhari commented 2 months ago

Created a snack with the issue here

vuksharu93 commented 2 months ago

@adamhari Thanks! Yes, it works when you delete containerComponent (with VictoryVoronoiContainer), but I need that :D So, I will use 37.0.2 for now

carbonrobot commented 2 months ago

Thanks for the reproduction, will add it to the queue