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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...