You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use field overrides to make my treemap more human-friendly, and I'm getting inconsistent results.
For demo purposes I made two field overrides, with one value mapping in each. The mapping just adds a ! suffix to make it clear when the override is being respected:
I also added those fields to the tooltip:
When rendering the labels for each tile, the override is not respected:
I expected to see kube-system! and coredns! there.
However, the tooltip does show the expected value mappings:
Looking briefly at the code, I think the difference is in <TreemapPanel>. It calls a display() function for the tooltip:
Confirming that Value Mappings are broken in TreeMap. In my case, I am trying to use Regex to make the data more human readable and the settings are not being used. Identical settings in a table visualization work.
I'm trying to use field overrides to make my treemap more human-friendly, and I'm getting inconsistent results.
For demo purposes I made two field overrides, with one value mapping in each. The mapping just adds a
!
suffix to make it clear when the override is being respected:I also added those fields to the tooltip:
![image](https://user-images.githubusercontent.com/40441/207641329-ad21fa3c-ecc8-4b1a-bbca-e687074f55b6.png)
When rendering the labels for each tile, the override is not respected:
I expected to see
kube-system!
andcoredns!
there.However, the tooltip does show the expected value mappings:
Looking briefly at the code, I think the difference is in
<TreemapPanel>
. It calls adisplay()
function for the tooltip:https://github.com/grafana/grafana-treemap-panel/blob/main/src/TreemapPanel.tsx#L101
but not for the node name:
https://github.com/grafana/grafana-treemap-panel/blob/main/src/TreemapPanel.tsx#L133
Panel debug snapshot dashboard
The text was updated successfully, but these errors were encountered: