Visx: Tree is not generated - nodes stacked one on another

Created on 22 Jan 2019  路  2Comments  路  Source: airbnb/visx

I've copied the script from https://vx-demo.now.sh/trees and all nodes stacked over previous node. Tried on Chrome & Firefox. Using latest vx 0.0.183 and React V16.7.0

Code Sandbox Example

Can somebody help me to get it working? :)

馃敭question

Most helpful comment

Hi,

I think you just need to give App height and width props. They're defaulting to undefined.

All 2 comments

Hi,

I think you just need to give App height and width props. They're defaulting to undefined.

scraperg is correct. Need to provide width and height props. Here's a working example: https://codesandbox.io/s/ywyxo8lqkv

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BrianRosamilia picture BrianRosamilia  路  3Comments

asteroidice picture asteroidice  路  3Comments

ghost picture ghost  路  5Comments

m0t0r picture m0t0r  路  3Comments

goaaron picture goaaron  路  3Comments