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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...