From 9730011a61bb3b1522ac59f12a26fbd36f7917a0 Mon Sep 17 00:00:00 2001 From: Naafiyan Ahmed Date: Mon, 25 Jul 2022 18:03:03 -0400 Subject: kind of got tooltips working --- src/client/views/nodes/DataVizBox/ChartBox.tsx | 3 +- src/client/views/nodes/DataVizBox/LineChart.tsx | 76 ++++++++++++++----------- 2 files changed, 46 insertions(+), 33 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/DataVizBox/ChartBox.tsx b/src/client/views/nodes/DataVizBox/ChartBox.tsx index 92ad76e61..f2450bc7c 100644 --- a/src/client/views/nodes/DataVizBox/ChartBox.tsx +++ b/src/client/views/nodes/DataVizBox/ChartBox.tsx @@ -190,6 +190,7 @@ export class ChartBox extends React.Component { let height = NumCast(this.props.rootDoc._height); height = height * 0.7; console.log(width, height); + const margin = { top: 50, right: 50, bottom: 50, left: 50 }; return (
@@ -199,7 +200,7 @@ export class ChartBox extends React.Component { this.onClick(e)} /> )} */} {/* {this.reLineChart} */} - +