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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...