Hi.
Can we use rangemaps to give colors to the charts in the geostats map. I am having some range values. they should be in some colors to be displayed in the pie charts on maps. is it possible.
i have used this query but not able to get the defined colors.
source="Churn_Map.csv" sourcetype="Churn_map"
| eval Churn = if(Churn="True.","1","0")
| eventstats sum(Churn) as true_churn , count(Churn) as total_churn by state
| eval prop= true_churn*100 / total_churn
| rangemap field=prop green=0-5 yellow=6-10 orange=11-15 default=red
| geostats values(prop) by StateName globallimit=0
Thanks.
Hope help you
http://docs.splunk.com/Documentation/Splunk/6.0/Viz/PanelreferenceforSimplifiedXML#map
mapping.fieldColors and mapping.seriesColors example
The following example configures the "foo" and "bar" fields to be red (0xFF0000) and green (0x00FF00), respectively, and configures all other fields to be blue (0x0000FF):
{foo:0xFF0000,bar:0x00FF00}
[0x0000FF]
I have added
<option name="mapping.fieldColors">{foo:0xFF0000,bar:0x00FF00}</option>
<option name="mapping.seriesColors">[0x0000FF]</option>
everything turns to blue.
what is foo and bar actually.
foo and bar are the fields just like churn, placement or customer
Hi @vganjare
I am trying like this <option name="mapping.seriesColors">{prop:0xC2C199}</option> as you said foo and bar are field names. so i tried using prop as the field name according to my query.
It is not changing. for every color code what i am trying, it is been changing to black color.don't know why.? 😞
Hi Santhosh, did you got any solution to this. am also facing the same issue here. can you please help me.
You can use it like,
<option name="mapping.fieldColors">{red:0xFF0000,green:0x00FF00,blue:0X0000FF}</option>
Where red,blue, green are values of rangemap field which got calculated.
it is not changing any colors Arun.
i have ranges and its values. i am unable to understand
<option name>"mapping.fieldColors"?{prop:0x0000FF}</option>
I have used that. but no use, any ideas?
One trick that you can use, is asign a value to each range, and the by modify the xml change the color.
I have used <option name>"mapping.fieldColors"?{prop:0x0000FF}</option>
but of no use. can you give any example please.
You will find that rangemap uses the following fields:
none = black
low = green
guarded = blue
elevated = yellow
high = orange
severe = red
default
Hope this helps
Hi @markthompson rangemap command must need some values to pass.
I am very new to this SPLUNK. Can you give me some syntax or example like thing to make it.
Hi Santosh,
Colors are predefined you can't change them. Rangemap colors will not help you with GoogleMap Visualization.
Hi @Arun_N_007 , I didn't used any APP. does it still doesn't support such things.?
in the link you have shared there they said it is of APP.
Hi Santhosh,
Splunk internally used Google Map view to generate maps.
I think it can be done 🙂
Please refer below link for options available.
https://developers.google.com/maps/documentation/javascript/reference#MapOptions
As jmallorquin said below link will help you
http://docs.splunk.com/Documentation/Splunk/6.0/Viz/PanelreferenceforSimplifiedXML#map
What ever color code I am adding , it is changing into black color.
I have added.
<option name="mapping.seriesColors">{prop:0xC2C199}</option>
Am i doing wrong.please correct me