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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...