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
+4 -4
View File
@@ -23,7 +23,7 @@ TableSortByFieldState: {
desc?: bool
} @cuetsy(targetType="interface")
TooltipMode: "single" | "multi" | "none" @cuetsy(targetType="type")
TooltipDisplayMode: "single" | "multi" | "none" @cuetsy(targetType="enum")
FieldTextAlignment: "auto" | "left" | "right" | "center" @cuetsy(targetType="type")
AxisPlacement: "auto" | "top" | "right" | "bottom" | "left" | "hidden" @cuetsy(targetType="enum")
PointVisibility: "auto" | "never" | "always" @cuetsy(targetType="enum")
@@ -72,9 +72,6 @@ HideSeriesConfig: {
} @cuetsy(targetType="interface")
LegendPlacement: "bottom" | "right" @cuetsy(targetType="type")
LegendDisplayMode: "list" | "table" | "hidden" @cuetsy(targetType="enum")
GraphTooltipOptions: {
mode: TooltipMode
} @cuetsy(targetType="interface")
TableFieldOptions: {
width?: number
align: FieldTextAlignment | *"auto"
@@ -91,3 +88,6 @@ VizLegendOptions: {
placement: LegendPlacement
calcs: [string]
} @cuetsy(targetType="interface")
VizTooltipOptions: {
mode: TooltipDisplayMode
} @cuetsy(targetType="interface")