Splunk Search
Highlighted

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

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
Highlighted

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

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

0 Karma