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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...