grafana/public
Oscar Kilhed d0239ac958
[grafana/UI] Hoovering over a legend label highlights the corresponding pie slice (#32941)
* Hoovering over a legend label hightlighs that pie slice

* Change to event bus

* Adds EventBusWithSource to help identify the origin of the event

* Add tests and fix bug with incorrect source

* Clean up PieChart and EventBus a bit

* Fix bug when payload.source is undefined

* Add some documentation and adjust naming

* useState instead of useSetState

* Clean up some more documentation

* Move eventbus to state

* add event bus actions to the debug panel

* add event bus actions to the debug panel

* Try to make the naming a bit clearer

* Try passing eventbus as context

* Fix lint issues

* Move event bus context to panel chrome

* Fix event handler functions

* switch to using useCallback for legend item callbacks

* Remove unused parameters

* Add id to panel fixture of PanelChrome test

* Simplify event source

* Place eventBus inside more generic context

* Push handling of context up the tree to VizLegend

only export usePanelContext and PanelContextProvider

implement isOwnEvent on EventBus

some cleanup

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2021-04-26 16:13:15 +02:00
..
app [grafana/UI] Hoovering over a legend label highlights the corresponding pie slice (#32941) 2021-04-26 16:13:15 +02:00
dashboards Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
emails Update email template for AlertingNG (#32691) 2021-04-07 14:52:48 +05:30
fonts Theme: V8 Theme updates (#33050) 2021-04-16 09:48:52 +02:00
img Theme: Update theme layering (#33217) 2021-04-22 09:18:32 +02:00
sass Checkbox: Updates to look and feel and using new theme (#33310) 2021-04-23 14:40:06 +02:00
test Performance: Standardize lodash imports to use destructured members (#33040) 2021-04-21 09:38:00 +02:00
vendor Decimals: Big Improvements to auto decimals and fixes to auto decimals bug found in 7.4-beta1 (#30519) 2021-01-22 16:37:56 +01:00
views CSP: Set nonce attribute on Webpack injected bundles (#33298) 2021-04-26 11:38:24 +02:00
robots.txt add support for robots.txt file 2015-06-15 19:02:38 -04:00