Dashboards & Visualizations

resize bar in bar graph to be universal size

louisawang
New Member

I have a bar graph with 3 fields labelled Memory, CPU and Disk Space. When there is no Memory value, only CPU and Disk space will show. However, the size of the bar will become fatter as less fields are being shown. Take for example:
It only shows disk space and CPU
Thin
vs
fat
where there is only one field and the size of the bar is bigger. How do i make it so its the same size no matter how many fields?
This is the code for the graph:

        <option name="charting.chart">bar</option>
        <option name="charting.chart.barSpacing">10</option>
        <option name="charting.chart.stackMode">stacked</option>
        <option name="charting.drilldown">none</option>
        <option name="charting.fieldColors">{"Green":#8BC647 , "Available":#A9A9A9, "Amber":#FCB54E, "Red":#EE2E55}</option>
        <option name="charting.legend.placement">bottom</option>
        <option name="height">350</option>
        <option name="refresh.display">progressbar</option>
0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...