Dashboards & Visualizations

Drilldown on Single Value with Sparkline Fails

New Member

I'm trying to drilldown on a single value, and I noticed there is a javascript error if the single value has these following options set in simpleXML:

<option name="drilldown">all</option>
<option name="colorBy">trend</option>
<option name="showSparkline">1</option>

And this is the error that I get:

alt text

But when I hide the spark line, the drilldown actually works and the error disappears:

<option name="drilldown">all</option>
<option name="colorBy">trend</option>
<option name="showSparkline">0</option>

How can I drilldown on a single value without having to hide the sparklines? I am using Splunk version 7.1.4, and want to know if this bug has been identified and fixed in later versions of splunk?

0 Karma


@kngsplunker for the community to assist you better you might have to share the results for Single Value sparkline in tabular format and also all the other options of the Single value visualization. Can you try

1) Either changing the trendDisplayMode from percent to absolute.
2) Or changing the numberPrecision from 0.00 to 0 or maybe higher precision 0.0000.

One of the reasons could be that the value while being used could resolve to 0 which may result in divide by 0 error.

Following is a run anywhere example based on Splunk's _internal index that I tried which worked fine!

  <label>Single Value Trend with Percent for Drilldown</label>
        <title>Clicked Value: $tokClickedValue$</title>
          <query>index=_internal sourcetype=splunkd 
| timechart count as total count(eval(log_level!="INFO")) as error
| eval perc=(error/total)*100
| fields - total error</query>
        <option name="colorBy">trend</option>
        <option name="colorMode">none</option>
        <option name="drilldown">all</option>
        <option name="numberPrecision">0.00</option>
        <option name="rangeColors">["0x53a051","0x0877a6","0xf8be34","0xf1813f","0xdc4e41"]</option>
        <option name="rangeValues">[0,30,70,100]</option>
        <option name="showSparkline">1</option>
        <option name="showTrendIndicator">1</option>
        <option name="trellis.enabled">0</option>
        <option name="trellis.scales.shared">1</option>
        <option name="trellis.size">medium</option>
        <option name="trendColorInterpretation">inverse</option>
        <option name="trendDisplayMode">percent</option>
        <option name="unitPosition">after</option>
        <option name="useColors">1</option>
        <option name="useThousandSeparators">0</option>
          <set token="tokClickedValue">$click.value2$</set>
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Splunk APM & RUM | Upcoming Planned Maintenance

There will be planned maintenance of the streaming infrastructure for Splunk APM and Splunk RUM in the coming ...

Part 2: Diving Deeper With AIOps

Getting the Most Out of Event Correlation and Alert Storm Detection in Splunk IT Service Intelligence   Watch ...

User Groups | Upcoming Events!

If by chance you weren't already aware, the Splunk Community is host to numerous User Groups, organized ...