PieChart: Unify tooltip to look the way it looks in TimeSeries (#33032)

* feat(piechart): align styles between piechart and graph

* feat(piechart): introduce tooltip options to panel and visualisation

* feat(piechart): get tooltip options working

* feat(piechart): add SeriesTable to visx TooltipInPortal

* refactor(piechart): move getTooltipData out of PieSlice

* docs(piechart): fix storybook story errors

* feat(viztooltip): initial commit of common tooltip types and components

* refactor(viztooltip): rename type as enum and update usage

* refactor(viztooltip): move chart.tooltip into viztooltip and fix imports and typings

* refactor(viztooltip): update import paths and names where used

* docs(infotooltip): fix story import paths

* docs(piechart): fix typings in story

* docs(viztooltip): add public annotations to exported components and types
This commit is contained in:
Jack Westbrook
2021-04-20 09:45:41 +02:00
committed by GitHub
parent 5f54f2dc00
commit c2953f3a06
39 changed files with 314 additions and 166 deletions

View File

@ -20,6 +20,7 @@ import {
LineStyle,
PointVisibility,
StackingMode,
TooltipDisplayMode,
} from '@grafana/ui';
import { Options } from './types';
import omitBy from 'lodash/omitBy';
@ -291,7 +292,7 @@ export function flotToGraphOptions(angular: any): { fieldConfig: FieldConfigSour
calcs: [],
},
tooltipOptions: {
mode: 'single',
mode: TooltipDisplayMode.Single,
},
};