All Apps and Add-ons

I would like to make a stacked bar chart dashboard

lanying
Explorer

I would like to make a stacked bar chart dashboard. This is a disk usage stacked bar.
I make a view like that. But, It is not stacked. Each bar is generated.
What option must I use?

<view template="dashboard.html">
<module name="SideviewUtils" layoutPanel="appHeader" />
    <module name="URLLoader" layoutPanel="panel_row1_col1" autoRun="True">
        <module name="Search" layoutPanel="panel_row1_col1" autoRun="True">
            <param name="search">sourcetype=df host=$host$ | multikv fields Used Avail MountedOn | chart first(Used) as Used , first(Avail) as Free by MountedOn</param>
            <param name="earliest">rt-30m</param>
            <param name="latest">rt</param>
            <module name="HiddenChartFormatter">    
                <param name="chart">column</param>
                <module name="FlashChart">
                    <param name="width">100%</param>
                    <param name="height">100%</param>
                </module>
        </module>
    </module>
</module>
</view>
1 Solution

MarioM
Motivator
<param name="chart.stackMode">stacked</param>

http://docs.splunk.com/Documentation/Splunk/4.2.3/Developer/CustomChartingConfig-ChartLegend

And when i want to know some simple module/params I just build report and add it to dashboard then add ?showsource=1 to the dashboard URI which will give me advanced xml and the xml code at the bottom

View solution in original post

lanying
Explorer

Thanks to you solve this problem. ^^

0 Karma

sideview
SplunkTrust
SplunkTrust

Note: you want to be very careful about having that second autoRun nested inside like that. Remove those whenever you see them.

0 Karma

MarioM
Motivator
<param name="chart.stackMode">stacked</param>

http://docs.splunk.com/Documentation/Splunk/4.2.3/Developer/CustomChartingConfig-ChartLegend

And when i want to know some simple module/params I just build report and add it to dashboard then add ?showsource=1 to the dashboard URI which will give me advanced xml and the xml code at the bottom

Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...