Dashboards & Visualizations

How to specify the column width of a stacked chart?

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

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>