I have some dashboard that all use the similar color visualizations for some single value panels.Currently they are set in the init of each dashboard:
In each panel that using them the options are set like this:
However, it is used in quite a few dashboards and the rangeValues need to be updated regularly because of changing targets.
So my idea is to create macros and set the token values using the macro, something like this:
Both don't seem to work, "set" just gives back a string: "`rangeColors`" and eval doesn't set a token at all.Can someone help me with making this work?Many thanks, Yolan
It won't work. Macros are search features and, because that part of the dashboard is not running a search, macros aren't recognized.
View solution in original post