Splunk Search

how to change graph line color

geetanjali
Path Finder

I have drawn one line graph by severity. and it has three types:
Error,Warning,Notice. I want to Display Error line in Red,warning in orange and Notice in blue color. who can i give custom colors to graph.

Thanks in advance.

Tags (1)
0 Karma

bwooden
Splunk Employee
Splunk Employee

In simple XML, it would look like this:

<dashboard>
 <label>My dashboard</label>
 <row>
  <chart>
   <searchName>My saved report</searchName>
    <option name="charting.legend.labels">[Error,Warning,Notice]</option>
    <option name="charting.seriesColors">[0xFF0000,0xF87217,0x0000FF]</option>
   </chart>
  </row>
</dashboard>

Whereas in the Advanced XML, you would update it like this:

...
<module name="HiddenChartFormatter">
  <param name="charting.legend.labels">[Error,Warning,Notice]</param>
  <param name="charting.seriesColors">[0xFF0000,0xF87217,0x0000FF]</param>
...

Further reading: http://www.splunk.com/base/Documentation/latest/Developer/AdvancedCharting#Chart_colors

aneeshkjm123
Path Finder

Thank you for your valuable answer....

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...