Comments (10)
@CoderHar please use the code in the example. I think you are missing x coordinate data. Let me know if you face the problem.
from react-native-d3-tree-graph.
@CoderHar use the below dummy data.
var root = {
name: "",
id: 1,
hidden: true,
children: [ {
name: "Q",
id: 16,
no_parent: true
},
{
name: "",
id: 2,
no_parent: true,
hidden: true,
children: [{
name: "J",
id: 12,
}, {
name: "L",
id: 13,
no_parent: true
}, {
name: "C",
id: 3
}, {
name: "",
id: 4,
hidden: true,
no_parent: true,
children: [{
name: "D",
id: 5,
}, {
name: "",
id: 14,
hidden: true,
no_parent: true,
children: [{
name: "P",
id: 15,
}]
}, {
name: "E",
id: 6,
}]
}, {
name: "K",
id: 11
}, {
name: "G",
id: 7,
children: [{
name: "H",
id: 8,
}, {
name: "I",
id: 9,
}]
}]
}, {
name: "M",
id: 10,
no_parent: true,
children: [
]
},
{
name: "anoop",
id: 155,
no_parent: true,
children: [{
name: "H",
id: 8,
}, {
name: "I",
id: 9,
},
{
name: "I",
id: 9,
},
{
name: "I",
id: 9,
},
{
name: "I",
id: 9,
},
]
},
{
name: "x",
id: 16,
no_parent: true
}
]
}
var siblings = [{
source: {
id: 3,
name: "C"
},
target: {
id: 11,
name: "K"
}
}, {
source: {
id: 12,
name: "L"
},
target: {
id: 13,
name: "J"
}
}, {
source: {
id: 5,
name: "D"
},
target: {
id: 6,
name: "E"
}
}, {
source: {
id: 16,
name: "Q"
},
target: {
id: 10,
name: "M"
}
}];
from react-native-d3-tree-graph.
@codesinghanoop hello still i get an error ,****error while updating property position X in shadow node of type:RNSVGText ****
expected array,got a string
from react-native-d3-tree-graph.
@codeHar please use the example not the one in the documentation itβs incomplete.
from react-native-d3-tree-graph.
yeah i used the code you have given now but i get the error
****error while updating property position X in shadow node of type:RNSVGText ****
expected array,got a string
from react-native-d3-tree-graph.
@CoderHar i think there is some problem with react-native-svg version ,need to check.
In the meanwhile please try the same version of svg in the example project.
from react-native-d3-tree-graph.
@codesinghanoop hi there, your example project is also no working
from react-native-d3-tree-graph.
@CoderHar will check and get back to you.
from react-native-d3-tree-graph.
@codesinghanoop now its working
from react-native-d3-tree-graph.
sounds good and let me know if you need enhancement.
Would you like to share how you make it working?
from react-native-d3-tree-graph.
Related Issues (9)
- run the example for android error HOT 1
- TypeError: undefined is not an object (evaluating 'start[0].x') HOT 14
- No ViewManager defined for class RNSVGPath
- iOS not working library file missing HOT 1
- Is it able to show an image for each node? HOT 3
- Typescript support HOT 1
- About line and image position HOT 1
- Nodes label rendering issue HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-d3-tree-graph.