Dashboards & Visualizations

How to change the colors of each bar in a barchart?

Inayath_khan
Path Finder

Hi folks ,

I wanted to change the color of each bar in a bar chart ,the field value of these bar charts are not legends . I see the coloring will work only for the legends or with some threshold value. I have count as my legend for now. Please suggest how can i achieve this.

Thanks in advance

0 Karma

vnravikumar
Champion

Hi

Check this sample, if it does not help share your query

<dashboard>
  <label>chart</label>
  <row>
    <panel>
      <chart>
        <search>
          <query>index=_internal 
| stats count by sourcetype 
| transpose 0 header_field=sourcetype |fields - column</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="charting.chart">bar</option>
        <option name="charting.drilldown">none</option>
      </chart>
    </panel>
  </row>
</dashboard>
0 Karma
Get Updates on the Splunk Community!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...