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!

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 ...