From 71790cb5ee62fa443a24e6a5181383cf46350c32 Mon Sep 17 00:00:00 2001 From: Naafiyan Ahmed Date: Wed, 29 Jun 2022 16:16:18 -0400 Subject: basic graph not working --- src/client/views/nodes/DataVizBox/TableBox.tsx | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/client/views/nodes/DataVizBox/TableBox.tsx (limited to 'src/client/views/nodes/DataVizBox/TableBox.tsx') diff --git a/src/client/views/nodes/DataVizBox/TableBox.tsx b/src/client/views/nodes/DataVizBox/TableBox.tsx new file mode 100644 index 000000000..dfa8262d8 --- /dev/null +++ b/src/client/views/nodes/DataVizBox/TableBox.tsx @@ -0,0 +1,37 @@ +import { action, computed, observable } from "mobx"; +import { observer } from "mobx-react"; +import * as React from "react"; + +interface TableBoxProps { + pairs: {x: number, y:number}[] +} + + +export class TableBox extends React.Component { + + + + render() { + return ( +
+ + + + + + + + + {this.props.pairs.map(p => { + return ( + + + ) + })} + +
xy
{p.x}{p.y}
+
+ ) + } + +} \ No newline at end of file -- cgit v1.2.3-70-g09d2