Git Product home page Git Product logo

Comments (10)

codesinghanoop avatar codesinghanoop commented on May 11, 2024

@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.

codesinghanoop avatar codesinghanoop commented on May 11, 2024

@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.

CoderHar avatar CoderHar commented on May 11, 2024

@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.

codesinghanoop avatar codesinghanoop commented on May 11, 2024

@codeHar please use the example not the one in the documentation it’s incomplete.

from react-native-d3-tree-graph.

CoderHar avatar CoderHar commented on May 11, 2024

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.

codesinghanoop avatar codesinghanoop commented on May 11, 2024

@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.

CoderHar avatar CoderHar commented on May 11, 2024

@codesinghanoop hi there, your example project is also no working

from react-native-d3-tree-graph.

codesinghanoop avatar codesinghanoop commented on May 11, 2024

@CoderHar will check and get back to you.

from react-native-d3-tree-graph.

CoderHar avatar CoderHar commented on May 11, 2024

@codesinghanoop now its working

from react-native-d3-tree-graph.

codesinghanoop avatar codesinghanoop commented on May 11, 2024

@CoderHar

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.