mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 01:00:24 +08:00
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:
@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user