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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...