Skip to content
New issue

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

can we Draggable Nodes by this plugin? #67

Open
jitendrapal00 opened this issue Jul 19, 2018 · 0 comments
Open

can we Draggable Nodes by this plugin? #67

jitendrapal00 opened this issue Jul 19, 2018 · 0 comments

Comments

@jitendrapal00
Copy link

jitendrapal00 commented Jul 19, 2018

Hello Guys, I need to drag-able the node with child and parents node also.
here is my code.

<InteractiveForceGraph
simulationOptions={

animate: true,
height: 900,
width: 1600,
strength: {
collide: 1,
},
}

      highlightDependencies
      isShowLabels={false}
      showLabel={false}
      selectedNode={null}
      labelAttr="label"
    >
      {

//it is an array
this.state.peopleNetworkNodes.map((node, i) => {

          return (
            <ForceGraphNode
              data-tip
              data-for="person"
              data-offset={"{'top': 45}"}
              node={{ id: i, radius: node.radius }}
              onMouseEnter={this.onMouseHover.bind(this, node.slug)}
              onClick={this.showPersonInfo.bind(this, node.slug)}
              fill={node.fill} key={i}
              
            />
          )
        })
      }
      {

// it is other array to make a link
this.state.peopleNetworkLinks.map((link, i) => {
return (
<ForceGraphLink key={i} link={{ source: link.source, target: link.target, value: link.value, strokeWidth: link.strokeWidth }} />
)
})
}

I have tried to this draggable : true, in simulationOptions

I want to like ths : https://www.screencast.com/t/yykrHWwo

@jitendrapal00 jitendrapal00 changed the title can we do Draggable Node by this plugin? can we Draggable Nodes by this plugin? Jul 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant