Dashboards & Visualizations

Bar color based on values ,using timechart , how to achieve it !

akhil4mdev
Explorer

I have a table

_time. 5.4. 5.6

05-1-2018. 0. 1
05-02-201&. 1. 0

It’s a time chart

So I wanna color the bar based on the coloumn values
Here it’s 5.4 and 5.6

I want below 6 to be red and above shd be green

Tags (1)
0 Karma

Azeemering
Builder

Have a look at the Splunk Dashboard example app: https://splunkbase.splunk.com/app/1603
There are great examples that show you this exact usage under "Table Elements"

Example xml:

    <panel>
      <table>
        <search>
          <query>
            index=_internal | stats count by sourcetype
          </query>
          <earliest>-15m</earliest>
          <latest>now</latest>
        </search>
        <format type="color" field="sourcetype">
          <colorPalette type="map">{"splunkd":#F7BC38,"scheduler":#6A5C9E}</colorPalette>
        </format>
        <format type="color" field="count">
          <colorPalette type="list">[#65A637,#6DB7C6,#F7BC38,#F58F39,#D93F3C]</colorPalette>
          <scale type="threshold">0,30,70,100</scale>
        </format>
      </table>
      <html>
        <ul>
          <li>"sourcetype" column is using custom defined colors based on individual cell values.</li>
          <li>"count" column is using custom defined colors based on cell value ranges.</li>
        </ul>
      </html>
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...