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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...