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!

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Deprecation of Splunk Observability Kubernetes “Classic Navigator” UI starting ...

Access to Splunk Observability Kubernetes “Classic Navigator” UI will no longer be available starting January ...

Now Available: Cisco Talos Threat Intelligence Integrations for Splunk Security Cloud ...

At .conf24, we shared that we were in the process of integrating Cisco Talos threat intelligence into Splunk ...