Fix Daily chart direct rendering

This commit is contained in:
Matthias 2021-08-08 19:53:05 +02:00
parent 9705fcf68d
commit 6a73c48f88

View File

@ -11,11 +11,28 @@ import { EChartsOption } from 'echarts';
import { use } from 'echarts/core'; 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 { TitleComponent, TooltipComponent, LegendComponent } from 'echarts/components'; import {
DatasetComponent,
GridComponent,
LegendComponent,
TitleComponent,
TooltipComponent,
VisualMapComponent,
} from 'echarts/components';
import { DailyReturnValue } from '@/types'; import { DailyReturnValue } from '@/types';
use([BarChart, LineChart, CanvasRenderer, TitleComponent, TooltipComponent, LegendComponent]); use([
BarChart,
LineChart,
CanvasRenderer,
GridComponent,
DatasetComponent,
LegendComponent,
TitleComponent,
TooltipComponent,
VisualMapComponent,
]);
// Define Column labels here to avoid typos // Define Column labels here to avoid typos
const CHART_ABS_PROFIT = 'Absolute profit'; const CHART_ABS_PROFIT = 'Absolute profit';