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!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...