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!

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...