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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...