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!

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