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
Builder
<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
Builder
<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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

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