diff options
author | bobzel <zzzman@gmail.com> | 2023-04-06 00:14:24 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-04-06 00:14:24 -0400 |
commit | a8343cad405a146fdff8fc2d66ef41fdaefb8bda (patch) | |
tree | 853c9b24f6bec83e46240fd9c39e9487e8eb6650 /src/client/views/nodes/DataVizBox/ChartInterface.ts | |
parent | 99fba6d6e99da0154d40d2e3e87e120d8e6f2810 (diff) |
more simplification/cleanup of dataviz
Diffstat (limited to 'src/client/views/nodes/DataVizBox/ChartInterface.ts')
-rw-r--r-- | src/client/views/nodes/DataVizBox/ChartInterface.ts | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/client/views/nodes/DataVizBox/ChartInterface.ts b/src/client/views/nodes/DataVizBox/ChartInterface.ts deleted file mode 100644 index 8ebcc2a5f..000000000 --- a/src/client/views/nodes/DataVizBox/ChartInterface.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Doc } from '../../../../fields/Doc'; -import { PinProps } from '../trails'; -import { DataPoint } from './ChartBox'; - -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: (pinProps?: PinProps) => Doc; -} - -export interface ChartProps { - chartData: ChartData; - width: number; - height: number; - dataDoc: Doc; - fieldKey: string; - // returns linechart component but should be generic chart - setCurrChart: (chart: Chart) => void; - getAnchor: () => Doc; - margin: { - top: number; - right: number; - bottom: number; - left: number; - }; -} - -export interface ChartData { - xLabel: string; - yLabel: string; - data: DataPoint[][]; -} |