Dashboards & Visualizations

Simple XML: dashedStroke (dashed line chart series)

bhay
Engager

After reading another member's tip on how to modify a brush to apply a dashed-line rather than solid I attempted to apply the following to my own chart:

<option name="charting.myBrush">dashedStroke</option>
<option name="charting.myBrush.dashSize">10</option>
<option name="charting.myBrush.dashSpacing">10</option>
<option name="charting.myBrush.color">0xFF0000</option>
<option name="charting.myBrush.thickness">5</option>
<option name="charting.myBrushPalette">list</option>
<option name="charting.myBrushPalette.brushes">[@myBrush]</option>
<option name="charting.chart.lineBrushPalette">@myBrushPalette</option>

The code referenced utilized "param" rather than "option". Is this an acceptable way to transfer this from advanced xml to simple xml? If so, what is missing to make my series include dashed lines?

Thank you.

Tags (3)
1 Solution

nfilippi_splunk
Splunk Employee
Splunk Employee

For this specific case, these params refer to charting options in FlashCharts, and given that Simple XML does not support FlashCharts in Splunk 6, these will effectively be ignored by the dashboard rendering engine.

As far as customization of line charts within Simple XML goes, you can use show markers on the line charts.

<option name="charting.chart.showMarkers">true</option>

http://docs.splunk.com/Documentation/Splunk/latest/Viz/ChartConfigurationReference

View solution in original post

0 Karma

nfilippi_splunk
Splunk Employee
Splunk Employee

For this specific case, these params refer to charting options in FlashCharts, and given that Simple XML does not support FlashCharts in Splunk 6, these will effectively be ignored by the dashboard rendering engine.

As far as customization of line charts within Simple XML goes, you can use show markers on the line charts.

<option name="charting.chart.showMarkers">true</option>

http://docs.splunk.com/Documentation/Splunk/latest/Viz/ChartConfigurationReference

0 Karma

bhay
Engager

Thank you for this response. I did not realize what the default charting option was out of the box.

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...