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!

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...

Adoption of Infrastructure Monitoring at Splunk

  Splunk's Growth Engineering team showcases one of their first Splunk product adoption-Splunk Infrastructure ...