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!

Index This | What did the zero say to the eight?

June 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...

Splunk Observability Cloud's AI Assistant in Action Series: Onboarding New Hires & ...

This is the fifth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Now Playing: Splunk Education Summer Learning Premieres

It’s premiere season, and Splunk Education is rolling out new releases you won’t want to miss. Whether you’re ...