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 | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...