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!

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 ...