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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...