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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...