Dashboards & Visualizations

Change default chart color template

niyaz006
Path Finder

Hi,

I would like to change the default chart colors template for all my charts in my app. I know we can chart for each chart using "charting.seriesColors". However, I am looking for any settings or conf file changes so that all my charts in my dashboard and all new charts will follow the new template colors.

Tags (3)
0 Karma

jawaharas
Motivator

You can do it via hidden field.

  1. Add below code in form's fieldset section. <input type="text" token="charting_fieldColors" depends="$hiddenToken$"> <default>[0x5f7396, 0x844539]</default> </input>
  2. Add below code in each of your chart panel. <option name="charting.seriesColors">$charting_fieldColors$</option>

Bingo!

0 Karma

niyaz006
Path Finder

Thanks for your comment jawaharas. I am looking for a way to not use 'charting.seriesColors' in every chart. If possible not add in every dashboard as well. We have a team of people working on multiple dashboards. Its tough to educate everyone and make them follow it in every dashboard, especially with new people and old people leaving. I am looking for a way to have them in a central place. It could be some splunk settings, conf files, css, etc.

Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...