Splunk Search

How to assign colors for a choropleth map based on the range of counts?

abhayneilam
Contributor

Hi,

I have a choropleth map, in which I have count like 0,179, 10, 65, 10

So , I want to put the color red if it is 0, green if it is 1-100, blue if it is 200-500, purple if it is 10000+, etc.

Please help me to get the color based on count range .. Please help !!

Cheers,

meenal901
Communicator

Hi,

Set the colors as below in your xml (change the value as per what you have in the rangemep).

{"1. low":0x00D03E,"2. medium":0xFAFA35,"3. high":0xE2A703, "4. very high":0xD12802}

0 Karma

TonyLeeVT
Builder

Can you provide a working example? Thanks!

0 Karma

araivndswamysai
New Member

base search|rangemap field=count green=0-5 red=5-10 yellow=11-20 default=gray| sort +count |
geom geo_countries
this is my query and I gave {"green":0xFF0000,"yellow":0xFFFF00,"red":0x00FF00} in XML code.
not able to highlight the region based on the color code.

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