You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import'./App.css';import{Graph}from"react-d3-graph";functionApp(){// graph payload (with minimalist structure)constdata={nodes: [{id: "Harry"},{id: "Sally"},{id: "Alice"}],links: [{source: "Harry",target: "Sally"},{source: "Harry",target: "Alice"},],};// the graph configuration, just override the ones you needconstmyConfig={nodeHighlightBehavior: true,node: {color: "lightgreen",size: 120,highlightStrokeColor: "blue",},link: {highlightColor: "lightblue",},};constonClickNode=function(nodeId){window.alert(`Clicked node ${nodeId}`);};constonClickLink=function(source,target){window.alert(`Clicked link between ${source} and ${target}`);};return<Graphid="graph-id"// id is mandatorydata={data}config={myConfig}onClickNode={onClickNode}onClickLink={onClickLink}/>;}exportdefaultApp;
Expected behavior
A viewable and recognizable graph.
Screenshots
there is a very small graph in the corner top left
if I hover the small green icon and scroll with mouse wheel then
Describe the bug
The minimal example in docs isn't scaled properly and while zooming there are errors.
To Reproduce
add minimal example from https://github.com/danielcaldas/react-d3-graph#minimal-usage-example so that
src/App.js
isExpected behavior
A viewable and recognizable graph.
Screenshots
there is a very small graph in the corner top left
if I hover the small green icon and scroll with mouse wheel then
Environment:
The text was updated successfully, but these errors were encountered: