Dashboards & Visualizations

How to give specific color for each dot in Splunk cluster map ?

sandyIscream
Communicator

Hi Splunkers!

We need to show the number of dots for each zip code in Splunk cluster map. On hover on each dot, we should show the zip code and mark the dots with a specific color.

I have a table like below.

zipcode latitude longitude Avg(percent1) avg(percent2) avg(percent3)

currently we are doing like this-

geostats latifield=latitude longfield=longitude count by zipcode.

Which is showing the number of count in the map but we are not able to restrict the color codes based on (avg%percent).

Could you please help me out here!

Tags (2)
0 Karma

niketn
Legend

@sandyIscream, could you please add more details on how color needs to be applied? What role do the three fields play?

Avg(percent1) avg(percent2) avg(percent3)

If you can add some sample numbers/sla for colors that would be helpful.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

PowerPacked
Builder

Hi @sandyIscream

Can you try charting.fieldcolors like this.

<option name="charting.fieldColors">
      {"ERROR": 0xFF0000, "WARN": 0xFF9900, "INFO":0x009900, "NULL":0xC4C4C0}
    </option>

Thanks

0 Karma

sandyIscream
Communicator

I have tried this trick. But my fields are generated dynamically. So hard-coding the values in charting.fieldColors will not work.

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 ...