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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...