diff options
Diffstat (limited to 'react-frontend/src/components/Visualization.js')
-rw-r--r-- | react-frontend/src/components/Visualization.js | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/react-frontend/src/components/Visualization.js b/react-frontend/src/components/Visualization.js index 01093dc..d65d106 100644 --- a/react-frontend/src/components/Visualization.js +++ b/react-frontend/src/components/Visualization.js @@ -14,16 +14,7 @@ import EdgeInfo from "./EdgeInfo"; */ function Visualization(props) { - /*let stocks = {}; - let hideEdgeInfo = true; - const setStocks = (newStocks) => { - stocks = newStocks; - } - - const setHideEdgeInfo = (val) => { - hideEdgeInfo = val; - }*/ const [key, setKey] = useState(0); @@ -45,27 +36,6 @@ function Visualization(props) { } } - - /*const getEdgeInfo = (fromID, toID) => { - fetch("http://localhost:4567/edge-data", { - method: "POST", - body: JSON.stringify({ - followerID: fromID, - leaderID: toID, - }), - headers: { - "Content-Type": "application/json", - }, - credentials: "same-origin" - }) - .then(res => res.json()) - .then(data => { - console.log(data); - setStocks(data); - setHideEdgeInfo(false); - }) - .catch(err => console.log(err)); - }*/ const getNodes = () => { let nodes = []; const maxScore = props.data[0].suspicionScore; @@ -122,20 +92,11 @@ function Visualization(props) { opacity: 0.7, highlight:'#fdca40', }, - /*chosen: { - edge: () => getEdgeInfo(follower.id, hub.id) - }*/ }); }); }); return edges; } - /* - * <EdgeInfo - stockList={stocks} - setHideInfo={setHideEdgeInfo} - hidden={hideEdgeInfo}> - </EdgeInfo>*/ // Hooks to update graph state when data changes useMemo(() => { |