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
Legend

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

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...