NodeGraph: Show gradient fields in legend (#34078)
* Add gradient fields to legend * Fix test * Remove unnecessary mapping * Add tests
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user