diff options
author | Julia McCauley <skurvyj@gmail.com> | 2021-04-20 12:02:58 -0400 |
---|---|---|
committer | Julia McCauley <skurvyj@gmail.com> | 2021-04-20 12:02:58 -0400 |
commit | e359237bb2820b830b8b48c73f87e944d19baecb (patch) | |
tree | 22d30a0bc037b5417472ce9a5383a3e83e9b4285 /react-frontend/src/components/Visualization.js | |
parent | 0f86bfc8182dd6b8559f352ebad7ff5ea8db8c73 (diff) |
fixed some stuff with css overflow for investor info popup
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(() => { |