Dashboards & Visualizations

charting.chart.lineBrushPalette not working for me on 6.0?

jvicente
New Member

I using Splunk 6.0 and I am trying to chart a series with custom strokes and colors
I have been able to customise colours using

<option name="charting.seriesColors"> [0x6CB8CA,0x6CB8CA,0xFAC61D,0xFAC61D,0xD85E3D,0xD85E3D,0x956E96,0x956E96]</option>

However, I would like to also define custom strokes for the strokes 2nd 4th 6th and 8th elements in the series.

Having looked in the Splunk charting.chart.lineBrushPalette documentation for 6.0 I tried using the following xml but the graph reverted to default colors.

Help would be greatly appreciated,

Thanks,
Joao

  <option name="charting.myBrush1">solidStroke</option>
  <option name="charting.myBrush1.color">0x6CB8CA</option>
  <option name="charting.myBrush2">dashedStroke</option>
  <option name="charting.myBrush2.color">0x6CB8CA</option>
  <option name="charting.myBrush3">solidStroke</option>
  <option name="charting.myBrush3.color">0xFAC61D</option>
  <option name="charting.myBrush4">dashedStroke</option>
  <option name="charting.myBrush4.color">0xFAC61D</option>
  <option name="charting.myBrush5">solidStroke</option>
  <option name="charting.myBrush5.color">0xD85E3D</option>
  <option name="charting.myBrush6">dashedStroke</option>
  <option name="charting.myBrush6.color">0xD85E3D</option>
  <option name="charting.myBrush7">solidStroke</option>
  <option name="charting.myBrush7.color">0x956E96</option>
  <option name="charting.myBrush8">dashedStroke</option>
  <option name="charting.myBrush8.color">0x956E96</option>
  <option name="charting.myBrushPalette">list</option>
  <option name="charting.myBrushPalette.brushes">[@myBrush1, @myBrush2, @myBrush3, @myBrush4, @myBrush5, @myBrush6, myBrush7, myBrush8]</option>
  <option name="charting.chart.lineBrushPalette">@myBrushPalette</option>
Tags (3)
0 Karma

nfilippi_splunk
Splunk Employee
Splunk Employee

Simple XML does not yet support this line chart styling in Splunk 6, so your alternative is to use advanced xml for this given that it still supports FlashCharts.

0 Karma

nfilippi_splunk
Splunk Employee
Splunk Employee

Simple XML dashboards in Splunk 6 no longer support FlashCharts, where those charting options are exclusive to. In JSCharts, you are able to customize the color series used with the following syntax:

    <option name="charting.seriesColors">[0x6CB8CA, 0xFAC61D, 0xD85E3D]</option>

For more information on the available charting options:
http://docs.splunk.com/Documentation/Splunk/6.0/Viz/ChartConfigurationReference

0 Karma

Jason
Motivator

You would need to change your dashboard to advanced XML. Open [dashboard url]?showsource=1, click show Advanced XML, and copy the XML in the bottom box into a new dashboard. Then flash (and its additional options you are using above) will be activated.

0 Karma

jvicente
New Member

Understood.
It is however important for me to be able to define not only color but also stroke, in particular dashed lines to replicate an existing graph one of my customers currently receives.
Is there any other way (maybe outside of Simple XML dashboards) where I could create dotted line graphs?

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