Dashboards & Visualizations

Using custom brushes on charts

kendrickt
Path Finder

Hi all,

It pains me to ask this really, but I have spend so long trying to figure this out.

I'm trying to use the information in this guide http://docs.splunk.com/Documentation/Splunk/6.2.2/AdvancedDev/CustomChartingConfig-FontColorBrushPal... to learn how to customise charts on dashboards etc...

I was really quite keen to use the imageFill option to add custom images to the backgroundBrush on my chart.

The problem is, I've read the guide(s) over and over, and I can't get any of it to work with the exception of 0xFF0000 - and with this - whatever I change the hex value to, the chart background goes black regardless! With the rest, I see no changes.

Here's a little bit of the simple XML I am using

    <option name="charting.chart.lineBrushPalette">@myLineBrushPalette</option>
<option name="charting.foregroundColor">0x000000</option>
    <option name="charting.backgroundColor">0xFF0000</option>

<option name="charting.fontFace">_sans</option>
    <option name="charting.fontSize">11</option>
    <option name="charting.fontColor">0x000000</option>

NONE of this has ANY effect on my line chart...

Now, please someone tell me I'm missing something - or I'm being really dense. Because it looks really simple but is proving to be really difficult for me.

Any suggestions greatly appreciated.

0 Karma

seanel
Path Finder

Hi

In a simple-xml dasboard, I think you need to disable the master palette in order to display your own custom stuff. Try adding the following to each chart

<option name="charting.legend.masterLegend"></option>

Hopefully that will at least fix the colour issues, not sure about the font

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...