grafana / grafana-polystat-panel

D3-Based hexagon layout multi-stat panel
Apache License 2.0
93 stars 29 forks source link

Can we use template variables in certain int fields? #354

Open YAMLcase opened 4 months ago

YAMLcase commented 4 months ago

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

briangann commented 4 months ago

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.