Splunk Search

color of column chart

surekhasplunk
Communicator

alt text

I have a graph like this. Now i want to highlight and make red only if Available value is less than 100 in the x axis.
how to do that.

Tags (3)
0 Karma
1 Solution

vnravikumar
Champion

Hi

Try like and adjust as per your requirement

<dashboard>
  <label>chart color</label>
  <row>
    <panel>
      <chart>
        <search>
          <query>index="_internal" |stats count by source | eval redCritical = if(count<= 10000,count ,0) | eval yellowWarning = if(count>= 10001,count ,0)</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="charting.chart">column</option>
        <option name="charting.drilldown">none</option>
        <option name="charting.legend.labels">[redCritical,yellowWarning]</option>
     <option name="charting.seriesColors">[0xFF0000,0xFFFF00]</option>
      </chart>
    </panel>
  </row>
</dashboard>

View solution in original post

0 Karma

vnravikumar
Champion

Hi

Try like and adjust as per your requirement

<dashboard>
  <label>chart color</label>
  <row>
    <panel>
      <chart>
        <search>
          <query>index="_internal" |stats count by source | eval redCritical = if(count<= 10000,count ,0) | eval yellowWarning = if(count>= 10001,count ,0)</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="charting.chart">column</option>
        <option name="charting.drilldown">none</option>
        <option name="charting.legend.labels">[redCritical,yellowWarning]</option>
     <option name="charting.seriesColors">[0xFF0000,0xFFFF00]</option>
      </chart>
    </panel>
  </row>
</dashboard>
0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

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

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...