Fix echarts Imports to have dashboard load right away

This commit is contained in:
Matthias 2021-08-08 19:58:32 +02:00
parent 30c93ac1c3
commit 1eaa7e0151
2 changed files with 13 additions and 4 deletions

View File

@ -21,9 +21,10 @@ import { use } from 'echarts/core';
import { CanvasRenderer } from 'echarts/renderers'; import { CanvasRenderer } from 'echarts/renderers';
import { LineChart, BarChart } from 'echarts/charts'; import { LineChart, BarChart } from 'echarts/charts';
import { import {
DatasetComponent,
LegendComponent,
TitleComponent, TitleComponent,
TooltipComponent, TooltipComponent,
LegendComponent,
VisualMapComponent, VisualMapComponent,
VisualMapPiecewiseComponent, VisualMapPiecewiseComponent,
} from 'echarts/components'; } from 'echarts/components';
@ -32,9 +33,11 @@ use([
BarChart, BarChart,
LineChart, LineChart,
CanvasRenderer, CanvasRenderer,
DatasetComponent,
LegendComponent,
TitleComponent, TitleComponent,
TooltipComponent, TooltipComponent,
LegendComponent,
VisualMapComponent, VisualMapComponent,
VisualMapPiecewiseComponent, VisualMapPiecewiseComponent,
]); ]);

View File

@ -13,9 +13,11 @@ import { use } from 'echarts/core';
import { CanvasRenderer } from 'echarts/renderers'; import { CanvasRenderer } from 'echarts/renderers';
import { LineChart, BarChart } from 'echarts/charts'; import { LineChart, BarChart } from 'echarts/charts';
import { import {
DatasetComponent,
DataZoomComponent,
LegendComponent,
TitleComponent, TitleComponent,
TooltipComponent, TooltipComponent,
LegendComponent,
VisualMapComponent, VisualMapComponent,
VisualMapPiecewiseComponent, VisualMapPiecewiseComponent,
} from 'echarts/components'; } from 'echarts/components';
@ -25,10 +27,14 @@ import { ClosedTrade } from '@/types';
use([ use([
BarChart, BarChart,
LineChart, LineChart,
CanvasRenderer, CanvasRenderer,
DatasetComponent,
DataZoomComponent,
LegendComponent,
TitleComponent, TitleComponent,
TooltipComponent, TooltipComponent,
LegendComponent,
VisualMapComponent, VisualMapComponent,
VisualMapPiecewiseComponent, VisualMapPiecewiseComponent,
]); ]);