From 096369a11a55bd5d20a9ac0dda54dff3876b4a03 Mon Sep 17 00:00:00 2001 From: Natasha DeCoste Date: Wed, 24 Jun 2020 15:10:59 -0400 Subject: [PATCH] fix(core): add tooltip to gauge chart tooltip is needed for title truncation --- packages/core/src/charts/gauge.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core/src/charts/gauge.ts b/packages/core/src/charts/gauge.ts index 7990b9d337..0956c60bbf 100644 --- a/packages/core/src/charts/gauge.ts +++ b/packages/core/src/charts/gauge.ts @@ -7,8 +7,7 @@ import { Tools } from "../tools"; // Components import { Gauge, - // the imports below are needed because of typescript bug (error TS4029) - TooltipPie + Tooltip } from "../components/index"; export class GaugeChart extends Chart { @@ -33,6 +32,8 @@ export class GaugeChart extends Chart { const graphFrameComponents = [new Gauge(this.model, this.services)]; const components: any[] = this.getChartComponents(graphFrameComponents); + components.push(new Tooltip(this.model, this.services)); + return components; } }