Dashboards & Visualizations

How to color code dynamic cells in dynamic chart table visualization in dashboard classic?

MT_HD
Engager

Hello Splunkers,  I am trying to color code cells based on the values of field 'execution_status'. Builds columns are dynamics, and not fixed, overtime more builds will appear. How do i dynamically color code the cell with 'FAIL', 'PASS', 'ERROR'. 

 

<row>
    <panel>
      <title>Results by Builds</title>
      <table>
        <search>
          <query>index=* source IN (*)
          | stats values(execution_status) as execution_status by test_case, build
          | streamstats first(execution_status) as execution_status by test_case, build
          | chart values(execution_status) by test_case, build</query>
          <earliest>$time.earliest$</earliest>
          <latest>$time.latest$</latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="count">5</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>

 

test case build1 build2 build3 build4
test1 PASS FAIL ERROR PASS
test2 ERROR FAIL PASS FAIL
test3 PASS ERROR PASS PASS
test4 FAIL ERROR PASS ERROR
test5 ERROR ERRO FAIL PASS
test6 PASS ERRO PASS PASS
Labels (3)
0 Karma

bowesmana
SplunkTrust
SplunkTrust

Define the default field colours using the map format definition 

<format type="color">
  <colorPalette type="map">{"ERROR":#FF0000, "PASS":#00FF00, "FAIL":#0000FF}</colorPalette>
</format>

 

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!

Introducing ITSI 5.0: Unified Visibility and Actionable Insights

Introducing ITSI 5.0: Unified Visibility and Actionable Insights Tuesday, July 21, 2026  |  10:00AM PT / ...

Inside Splunk Agent Observability: Understanding Agent Behavior, Tokens & Costs

Inside Splunk Agent Observability:Understanding Agent Behavior, Tokens & Costs Thursday, August 06, ...

From Data to Insight: Announcing the Winners of the Splunk Dashboard Contest

Hi Splunkers, First off, thank you to everyone who participated in our very first From Data to Insight: The ...