Dashboards & Visualizations

How to color table cell on dashboard based on value?

ataunk
Explorer

We following Dashboard Source code :-

<dashboard>
  <label>test_2</label>
  <row>
    <panel>
      <table>
        <search>
          <query>host="ww-fgrzdc2" | eval BadFetch=if(match(_raw,"error.badfetch"),1,0) | timechart count(CALLID) as callCount, count(BadFetch) as BadFetch</query>
          <earliest>-7d@h</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="count">20</option>
        <option name="dataOverlayMode">none</option>
        <option name="drilldown">none</option>
        <option name="percentagesRow">false</option>
        <option name="rowNumbers">false</option>
        <option name="totalsRow">false</option>
        <option name="wrap">true</option>
      </table>
    </panel>
  </row>
</dashboard>

I want to highlight individual cell depending on Value. I have tried couple of JS and Css but none worked. In that they have used table. But, I am using timechart, which in turn is rendering a table..Not sure how to do. Please help..

0 Karma
1 Solution

niketn
Legend

@ataunk, refer to Splunk Documentation

Formatting through Splunk Web UI: http://docs.splunk.com/Documentation/Splunk/latest/Viz/TableFormatsFormatting#Format_table_columns

Or through Simple XML: http://docs.splunk.com/Documentation/Splunk/latest/Viz/TableFormatsXML

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

0 Karma

niketn
Legend

@ataunk, refer to Splunk Documentation

Formatting through Splunk Web UI: http://docs.splunk.com/Documentation/Splunk/latest/Viz/TableFormatsFormatting#Format_table_columns

Or through Simple XML: http://docs.splunk.com/Documentation/Splunk/latest/Viz/TableFormatsXML

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

niketn
Legend

@ataunk I have converted my comment to answer. Please accept to mark this question as answered.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

niketn
Legend

Which version of Splunk are you on? Can you add sample of data in your table with field names and also what are the color ranges based on value.

Coloring by Table cell value is inbuilt to Splunk 6.5 onward (in Simple XML dashboard). Refer to Splunk 6.x Dashboard Examples App from Splunkbase.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

ataunk
Explorer

Splunk Version -- 6.5.3.1

_time callCount BadFetch
Value Value
Value Value
Value Value
Value Value
Value Value

I do not see it ?where do we have that feature ?

0 Karma

ataunk
Explorer

Also, I did install the plugin from https://splunkbase.splunk.com/app/1603/

But, do not see any option when I click on edit the dashboard..

0 Karma
Get Updates on the Splunk Community!

Your Guide to Splunk Digital Experience Monitoring

A flawless digital experience isn't just an advantage, it's key to customer loyalty and business success. But ...

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...