Splunk Search

How to add different marker types for different lines in one chart?

bux187
New Member

Hi,
I have 3 lines in 1 chart (average, threshold, total_alarm)
I would like to use different marker types for the 3 different line above.

I have used:

<option name="charting.chart.markerSize">5</option>

but the same marker applied to all 3 lines.

0 Karma

renjith_nair
SplunkTrust
SplunkTrust

@bux187,

<option name="charting.fieldDashStyles"> might be useful for you . Here is a run anywhere example

<dashboard>
  <label>Marker Types</label>
  <row>
    <panel>
      <chart>
        <search>
          <query>index=_internal earliest=-2h |timechart span=20m max(date_second) as Max,avg(date_second) as Avg,min(date_second) as Min</query>
        </search>
        <option name="charting.chart">line</option>
        <option name="charting.drilldown">none</option>
        <option name="refresh.display">progressbar</option>
        <option name="charting.fieldDashStyles"> {"Max": "shortDashDotDot","Avg":"dot","Min":"longDash"}</option>
      </chart>
    </panel>
  </row>
</dashboard>

Reference : chart properties

Happy Splunking!
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...