Grafana 9 removed the deprecated function getColorForTheme from @grafana/data which this plugin relies on. This PR fixes this by updated the clock panel to use Theme2 and replace getColorForTheme with theme.v1.visualization.getColorByName.
Unfortunately [theme/theme.v1].visualization.getColorByName was introduced in Grafana v8.0.0 so doing this means that we have to drop support for Grafana v7.x.x.
Fixes: #106
Notes for reviewer
I've tested this in grafana:8.0.0 and grafana:9.0.0-beta2 and appears to be working as expected.
Grafana 9 removed the deprecated function
getColorForTheme
from@grafana/data
which this plugin relies on. This PR fixes this by updated the clock panel to useTheme2
and replacegetColorForTheme
withtheme.v1.visualization.getColorByName
.Unfortunately
[theme/theme.v1].visualization.getColorByName
was introduced in Grafana v8.0.0 so doing this means that we have to drop support for Grafana v7.x.x.Fixes: #106
Notes for reviewer
I've tested this in
grafana:8.0.0
andgrafana:9.0.0-beta2
and appears to be working as expected.