From 6a73c48f8826881e7ac2cbbd92c5c051329ce822 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 8 Aug 2021 19:53:05 +0200 Subject: [PATCH] Fix Daily chart direct rendering --- src/components/charts/DailyChart.vue | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/components/charts/DailyChart.vue b/src/components/charts/DailyChart.vue index 11a93678..a0ee24ab 100644 --- a/src/components/charts/DailyChart.vue +++ b/src/components/charts/DailyChart.vue @@ -11,11 +11,28 @@ import { EChartsOption } from 'echarts'; import { use } from 'echarts/core'; import { CanvasRenderer } from 'echarts/renderers'; 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'; -use([BarChart, LineChart, CanvasRenderer, TitleComponent, TooltipComponent, LegendComponent]); +use([ + BarChart, + LineChart, + CanvasRenderer, + GridComponent, + DatasetComponent, + LegendComponent, + TitleComponent, + TooltipComponent, + VisualMapComponent, +]); // Define Column labels here to avoid typos const CHART_ABS_PROFIT = 'Absolute profit';