Skip to content

Commit

Permalink
Merge pull request carbon-design-system#682 from natashadecoste/gauge…
Browse files Browse the repository at this point in the history
…-tooltip

tooltip is needed for title truncation

Co-authored-by: Eliad Moosavi <[email protected]>
  • Loading branch information
2 people authored and linhenry0417 committed Jul 23, 2020
1 parent f7fd64e commit d3a2483
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/charts/gauge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;
}
}

0 comments on commit d3a2483

Please sign in to comment.