Dashboards & Visualizations

Gaps in graphs

jangid
Builder

I am calculating avg but some time my graph contains gap.

How do I fill this gap with line(last value)?

here is my xml

<row>
    <chart>
        <searchTemplate>
        sourcetype=mysearch.. | where ElapsedTime > 0 | timechart avg(ElapsedTime)

        </searchTemplate>
        <title>Transaction Average</title>
        <option name="charting.chart">line</option> 
        <option name="charting.primaryAxisTitle.text">Time</option>
        <option name="charting.secondaryAxisTitle.text">Average Transaction Time</option>
    </chart>
</row>
Tags (3)
1 Solution

dwaddle
SplunkTrust
SplunkTrust

It looks like it should be something like:

<option name="charting.chart.line.nullValueMode">connect</option>

Per the docs @ http://docs.splunk.com/Documentation/Splunk/4.3.3/Developer/CustomChartingConfig-chartlegend#linecha...

View solution in original post

dwaddle
SplunkTrust
SplunkTrust

It looks like it should be something like:

<option name="charting.chart.line.nullValueMode">connect</option>

Per the docs @ http://docs.splunk.com/Documentation/Splunk/4.3.3/Developer/CustomChartingConfig-chartlegend#linecha...

sowings
Splunk Employee
Splunk Employee

Try simply <option name="charting.chart.nullValueMode">connect</option>

NeerajDhapola7
Path Finder

I am with @SoWings as newer Version has below option

<option name="charting.chart.nullValueMode">connect</option>
0 Karma

jangid
Builder

Thanks for your reply but its not working 😞

0 Karma

MHibbin
Influencer

beat me to it..

Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...