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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...