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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...