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 { LineChart, BarChart } from 'echarts/charts';
import {
DatasetComponent,
LegendComponent,
TitleComponent,
TooltipComponent,
LegendComponent,
VisualMapComponent,
VisualMapPiecewiseComponent,
} from 'echarts/components';
@ -32,9 +33,11 @@ use([
BarChart,
LineChart,
CanvasRenderer,
DatasetComponent,
LegendComponent,
TitleComponent,
TooltipComponent,
LegendComponent,
VisualMapComponent,
VisualMapPiecewiseComponent,
]);

View File

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