grafana / grafana-polystat-panel

D3-Based hexagon layout multi-stat panel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can we use template variables in certain int fields?

YAMLcase opened this issue · comments

My dashboard tends to have many polystat panels and I prefer all hexagons are the same size. I attempted to use a ${hex_size} dashboard variable, but it appears the "polygon size in pixels" only accepts numbers (and the letter e for some reason).

If this is not possible because field only accepts integers, could the field be changed to accept a string, and parse CSS style size suffixes (px with lone number defaulting to pixel size? this way variable characters can be parsed.

image

that sounds like a good idea to be more flexible.

the e works since you can enter scientific notation - 1e3 for 1000, just a side effect of the input field allowing it.