Dashboards & Visualizations

customize heatmap in advance xml

klee310
Communicator

hi, does anyone know how or if it is possible to customize the colors displayed in each cell of a table using heatmap?

from what i can tell, the underlying code generates a heat value for all cells in a table, then apply a shading of the color red to each cell - depending on this heat value.

however here's the problem: my table is configured to display percentages. therefore value range between 0 and 100, however if the actual result table only has 21.999 (for example) as the highest value, then this value is given a heat value of 1.0; hence displayed with the darkest shade of red.

i want to be able to customize the way this heat value is calculated, or perhaps provide a range like the rangemap command.

anyone with thoughts and comments are welcome.

thanks in advance.

0 Karma
1 Solution

rsennett_splunk
Splunk Employee
Splunk Employee

The Module you're looking for is DataOverlay, but there are no parameters to help you change the colors.
It can absolutely be done by customizing the css.

Start by looking at the answer here and follow the trail. You'll find examples of using css and javascript as well as a reference to an app that provides examples of how you might implement it (the app is for rowcolors).

With Splunk... the answer is always "YES!". It just might require more regex than you're prepared for!

View solution in original post

0 Karma

rsennett_splunk
Splunk Employee
Splunk Employee

The Module you're looking for is DataOverlay, but there are no parameters to help you change the colors.
It can absolutely be done by customizing the css.

Start by looking at the answer here and follow the trail. You'll find examples of using css and javascript as well as a reference to an app that provides examples of how you might implement it (the app is for rowcolors).

With Splunk... the answer is always "YES!". It just might require more regex than you're prepared for!
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...