Dashboards & Visualizations

Dashboard

is91
New Member

I would like to know if it is possible to modify the color of the curve in a dashboard using Line Chart ?

Tags (1)
0 Karma
1 Solution

oscar84x
Contributor

https://docs.splunk.com/Documentation/Splunk/7.3.0/Viz/BuildandeditdashboardswithSimplifiedXML#Speci...

You can add the charting.fieldColors option to your chart's xml and specify hexadecimal colors (link below):

<option name="charting.fieldColors">
{"DATA1":hexadecimal_color,"DATA2":hexadecimal_color...}
</option> 

https://www.w3schools.com/colors/colors_hexadecimal.asp

View solution in original post

asneed_eu
Path Finder

In addition to the above answer check out the Dashboard Examples app for many more options: https://splunkbase.splunk.com/app/1603/

Example of formatting a single line as red:

<option name="charting.seriesColors">[0xFF0000]</option>
0 Karma

oscar84x
Contributor

https://docs.splunk.com/Documentation/Splunk/7.3.0/Viz/BuildandeditdashboardswithSimplifiedXML#Speci...

You can add the charting.fieldColors option to your chart's xml and specify hexadecimal colors (link below):

<option name="charting.fieldColors">
{"DATA1":hexadecimal_color,"DATA2":hexadecimal_color...}
</option> 

https://www.w3schools.com/colors/colors_hexadecimal.asp

oscar84x
Contributor

@is91 Please let us know if this answer was helpful.

0 Karma

is91
New Member

thanks. it is very helpful.

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...