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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...