Dashboards & Visualizations

How to specify the column width of a stacked chart?

jdagenais
Explorer

Hello,

I am designing dashboards using the simplified XML, and I would like to specify the column width so that the chart width is smaller.

<row>
    <chart>
        <title>Yesterday Data</title>
        <earliestTime>-1d@d</earliestTime>
        <latestTime>@d</latestTime>
        <searchString>
           "searchstring .... 
           | timechart span=1h count by eventtype usenull=f useother=f 
        </searchString>
        <option name="height">250px</option>
        <option name="charting.chart">column</option>

        <option name="charting.chart.stackMode">stacked</option>
        <option name="charting.chart.columnSpacing">1</option>
        <option name="charting.chart.useAbsoluteSpacing">true</option>

        <option name="charting.chart.columnStyle.spriteWidth">30</option>
        <option name="charting.primaryAxisTitle.text"></option>
        <option name="charting.secondaryAxisTitle.text">Count</option>
        <option name="charting.legend.placement">top</option>
        <option name="drilldown">all</option>
    </chart>
</row>

There is a description of some properties that can be used in the documentation, but I can figure out how to specify it: http://www.splunk.com/base/Documentation/latest/Developer/AdvChartingConfig-TextblockLayoutspriteSpr...

For example, I tried these options, but is does not work...

        <option name="charting.chart.columnStyle.spriteWidth">30</option>
        <option name="charting.chart.columnStyle.spriteWidth">spriteWidth</option>
        <option name="charting.layoutSprite.maximumWidth">30</option>
        <option name="charting.chart.sprite.width">30</option>

Thanks for all your help!

Jean

adityapavan18
Contributor

Can you try this

<param name="charting.primaryAxisTitle.text">blah blah..</param>
<param name="charting.secondaryAxisTitle.text">blah blah..</param>
<param name="charting.chart.columnStyle.width">30</param>
<param name="charting.chart">column</param>
<param name="charting.chart.stackMode">stacked</param>

Get Updates on the Splunk Community!

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, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...