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>
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...