NodeGraph: Show gradient fields in legend (#34078)

* Add gradient fields to legend

* Fix test

* Remove unnecessary mapping

* Add tests
This commit is contained in:
Andrej Ocenas
2021-05-18 16:30:27 +02:00
committed by GitHub
parent bbaa7a9b62
commit 2e7ccf0e42
14 changed files with 161 additions and 46 deletions
@@ -1,7 +1,7 @@
import { GrafanaTheme, GrafanaThemeType } from '../types/theme';
/**
* @deprecated use theme.vizColors.getByName
* @deprecated use theme.visualization.getColorByName
*/
export function getColorForTheme(color: string, theme: GrafanaTheme): string {
return theme.visualization.getColorByName(color);