All Apps and Add-ons

Classic Dashboard Line Chart Data Values Toggle.

mhoff
Engager

Is there any way to toggle the data points on and off via a radio button added to a dashboard? When doing line charts with long lengths of data, the numbers get tightly put together overlapping.

mhoff_0-1732741075609.png

Labels (1)
Tags (2)
0 Karma
1 Solution

dural_yyz
Motivator
<form version="1.1" theme="light">
  <label>Answers - Classic - Viz toggles</label>
  <fieldset submitButton="false">
    <input type="radio" token="tok_data_labels">
      <label>Data Labels</label>
      <choice value="none">Off</choice>
      <choice value="all">On</choice>
      <choice value="minmax">Min/Max</choice>
      <default>none</default>
    </input>
  </fieldset>
  <row>
    <panel>
      <chart>
        <title>Viz Radio Toggle</title>
        <search>
          <query>index=_internal 
| timechart span=5m limit=5 useother=t count by sourcetype</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="charting.chart">line</option>
        <option name="charting.chart.showDataLabels">$tok_data_labels$</option>
        <option name="charting.drilldown">none</option>
        <option name="refresh.display">progressbar</option>
      </chart>
    </panel>
  </row>
</form>

View solution in original post

dural_yyz
Motivator
<form version="1.1" theme="light">
  <label>Answers - Classic - Viz toggles</label>
  <fieldset submitButton="false">
    <input type="radio" token="tok_data_labels">
      <label>Data Labels</label>
      <choice value="none">Off</choice>
      <choice value="all">On</choice>
      <choice value="minmax">Min/Max</choice>
      <default>none</default>
    </input>
  </fieldset>
  <row>
    <panel>
      <chart>
        <title>Viz Radio Toggle</title>
        <search>
          <query>index=_internal 
| timechart span=5m limit=5 useother=t count by sourcetype</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="charting.chart">line</option>
        <option name="charting.chart.showDataLabels">$tok_data_labels$</option>
        <option name="charting.drilldown">none</option>
        <option name="refresh.display">progressbar</option>
      </chart>
    </panel>
  </row>
</form>
Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco &#43; Splunk! We’ve ...