diff options
| author | Naafiyan Ahmed <naafiyan@gmail.com> | 2022-07-27 13:57:26 -0400 |
|---|---|---|
| committer | Naafiyan Ahmed <naafiyan@gmail.com> | 2022-07-27 13:57:26 -0400 |
| commit | 50797032a67c6e3920edd8ab38e6453a17674cb8 (patch) | |
| tree | 869d555d106bb56be40c5eb441192fc66611a4ad /src/client/views/nodes/DataVizBox/ChartBox.tsx | |
| parent | ba8cb4194062b0f939afd136a269625f9f26dcaa (diff) | |
this.addDocument does not exist
Diffstat (limited to 'src/client/views/nodes/DataVizBox/ChartBox.tsx')
| -rw-r--r-- | src/client/views/nodes/DataVizBox/ChartBox.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/views/nodes/DataVizBox/ChartBox.tsx b/src/client/views/nodes/DataVizBox/ChartBox.tsx index a2e4fd73c..34eee8ee8 100644 --- a/src/client/views/nodes/DataVizBox/ChartBox.tsx +++ b/src/client/views/nodes/DataVizBox/ChartBox.tsx @@ -1,8 +1,8 @@ import { observer } from 'mobx-react'; import * as React from 'react'; -import { Doc, HeightSym } from '../../../../fields/Doc'; +import { Doc } from '../../../../fields/Doc'; import { action, computed, observable } from 'mobx'; -import { Cast, NumCast, StrCast } from '../../../../fields/Types'; +import { NumCast, StrCast } from '../../../../fields/Types'; import { LineChart } from './components/LineChart'; import { Chart, ChartData } from './ChartInterface'; @@ -22,7 +22,7 @@ export interface DataPoint { @observer export class ChartBox extends React.Component<ChartBoxProps> { @observable private _chartData: ChartData | undefined = undefined; - @observable private currChart: LineChart | undefined; + private currChart: Chart | undefined; @computed get currView() { if (this.props.rootDoc._dataVizView) { @@ -39,8 +39,8 @@ export class ChartBox extends React.Component<ChartBoxProps> { } } - setCurrChart(chart: Chart | undefined) { - // this.currChart = chart; + setCurrChart(chart: Chart) { + this.currChart = chart; } @action |
