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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...