Migrate plugins from Grafana version 8.x to 9.x
Follow these instructions to migrate plugins from version 8.x to 9.x.
9.0 breaking changes
The following breaking changes are introduced in version 9.0 of Grafana.
theme.visualization.getColorByName
replaces getColorForTheme
The getColorForTheme
was removed, so you should use theme.visualization.getColorByName
instead.
Example:
// before
fillColor: getColorForTheme(panel.sparkline.fillColor, config.theme)
// after
fillColor: config.theme.visualization.getColorByName(panel.sparkline.fillColor),