We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am trying to use this module in a project and with the provided demo tree I can not load the component at all. Issues I noticed are:
demo tree
d3
required
onConfigChange
loadConfig
TypeError: Cannot read property 'tree' of undefined
My whole App.js is:
import React from 'react'; import './App.css'; import OrgChart from '@unicef/react-org-chart' let tree = { id: 1, person: { id: 1, avatar: 'https://s3.amazonaws.com/uifaces/faces/twitter/spbroma/128.jpg', department: '', name: 'Jane Doe', title: 'CEO', totalReports: 1 }, hasChild: true, hasParent: false, isHighlight: true, children: [ { id: 2, person: { id: 2, avatar: 'https://s3.amazonaws.com/uifaces/faces/twitter/spbroma/128.jpg', department: '', name: 'John Foo', title: 'CTO', totalReports: 0 }, hasChild: false, hasParent: true, isHighlight: false, children: [] }] } function App() { return ( <div className="App"> <OrgChart tree={tree} /> </div> ); } export default App;
my-app.zip
The text was updated successfully, but these errors were encountered:
I was able to make some progress on this by adding exactly the 3.5.17 d3 version to the package.json. D3 latest version is not compatible.
3.5.17
Sorry, something went wrong.
Thank you, I had the same error and it solved it, did you found a way to display something?
I believe this is related to layout method in d3: #11
No branches or pull requests
I am trying to use this module in a project and with the provided
demo tree
I can not load the component at all. Issues I noticed are:d3
which I had to install in addition to get the app off the ground.required
:onConfigChange
loadConfig
d3
install I am getting the error:My whole App.js is:
my-app.zip
The text was updated successfully, but these errors were encountered: