aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DataVizBox/ChartInterface.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-04-05 22:44:38 -0400
committerbobzel <zzzman@gmail.com>2023-04-05 22:44:38 -0400
commit99fba6d6e99da0154d40d2e3e87e120d8e6f2810 (patch)
tree28002db4cc426ba68da4bc1b837fe21e16b1e27b /src/client/views/nodes/DataVizBox/ChartInterface.ts
parent9b41da1af16b982ee8ac2fc09f2f8b5d67eac9fb (diff)
fixed up dataviz to work again. fixed point selection, tooltips, making and following links
Diffstat (limited to 'src/client/views/nodes/DataVizBox/ChartInterface.ts')
-rw-r--r--src/client/views/nodes/DataVizBox/ChartInterface.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/DataVizBox/ChartInterface.ts b/src/client/views/nodes/DataVizBox/ChartInterface.ts
index 494242ac5..8ebcc2a5f 100644
--- a/src/client/views/nodes/DataVizBox/ChartInterface.ts
+++ b/src/client/views/nodes/DataVizBox/ChartInterface.ts
@@ -1,15 +1,15 @@
import { Doc } from '../../../../fields/Doc';
+import { PinProps } from '../trails';
import { DataPoint } from './ChartBox';
-import { LineChart } from './components/LineChart';
export interface Chart {
tooltipContent: (data: DataPoint) => string;
drawChart: () => void;
+ restoreView: (data: any) => boolean;
height: number;
width: number;
// TODO: nda - probably want to get rid of this to keep charts more generic
- _getAnchor: () => Doc;
- setCurrSelected: (x: number, y: number) => void;
+ _getAnchor: (pinProps?: PinProps) => Doc;
}
export interface ChartProps {