From 085b1fbfc5769edcb61acbf60a2e7c901cbeb452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C5=BEe=20Fortun?= Date: Thu, 22 Dec 2022 13:23:01 +0100 Subject: [PATCH] Fix always show tooltips for reporter charts --- .../Report/Blocks/DisplayElements/Configurators/Chart.vue | 2 +- lib/js/src/reporter/types/display-elements/chart/basic.ts | 4 ++-- lib/js/src/reporter/types/display-elements/chart/funnel.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/web/reporter/src/components/Report/Blocks/DisplayElements/Configurators/Chart.vue b/client/web/reporter/src/components/Report/Blocks/DisplayElements/Configurators/Chart.vue index 44c753fa0..719f77429 100644 --- a/client/web/reporter/src/components/Report/Blocks/DisplayElements/Configurators/Chart.vue +++ b/client/web/reporter/src/components/Report/Blocks/DisplayElements/Configurators/Chart.vue @@ -465,7 +465,7 @@ {{ $t('display-element:chart.configurator.tooltips.show.always') }} diff --git a/lib/js/src/reporter/types/display-elements/chart/basic.ts b/lib/js/src/reporter/types/display-elements/chart/basic.ts index 967c73a3b..20dcc5f51 100644 --- a/lib/js/src/reporter/types/display-elements/chart/basic.ts +++ b/lib/js/src/reporter/types/display-elements/chart/basic.ts @@ -52,7 +52,7 @@ export class BasicChartOptions extends ChartOptions { formatter: '{a}
{b} : {c} ({d}%)', }, label: { - show: this.showTooltipsAlways, + show: this.tooltips.showAlways, position: 'inside', align: 'center', verticalAlign: 'middle', @@ -163,7 +163,7 @@ export class BasicChartOptions extends ChartOptions { areaStyle: {}, left: 'left', label: { - show: this.showTooltipsAlways, + show: this.tooltips.showAlways, position: 'inside', align: 'center', verticalAlign: 'middle', diff --git a/lib/js/src/reporter/types/display-elements/chart/funnel.ts b/lib/js/src/reporter/types/display-elements/chart/funnel.ts index bb06594ea..f91c1adaa 100644 --- a/lib/js/src/reporter/types/display-elements/chart/funnel.ts +++ b/lib/js/src/reporter/types/display-elements/chart/funnel.ts @@ -57,7 +57,7 @@ export class FunnelChartOptions extends ChartOptions { sort: 'descending', width: '90%', label: { - show: this.showTooltipsAlways, + show: this.tooltips.showAlways, position: 'inside', align: 'center', verticalAlign: 'middle',