Hi, I have an index containing multipolygons, it renders very well using Kibana maps.
However I would like to colour them. Using the colour-by-value works but only for the first x (based on the color bar chosen. (10 or 20 or 30)
Once the first (10 or 20 or 30) have been colourised, all the rest get stuck on the same colour
To attempt to work around this I've added a colour field into the index
It is not possible to directly use a field value as the color displayed in the map.
Can you describe your use case? Why are you trying to visualize so many categories? How will wrapping the color ramp help since you would then have many colors associated with a single color.
This is using the 10 color map, but contains 13 polygons. polygons 10,11,12,13 are all the same colour orange.
Not too bad in this example as none of them share a boundary, but demonstrates the problem.
I would recommend using a scale that shows 20 colors to avoid duplicates. If you have more then 30 values, you can use a custom color ramp to set each color. I would question a use case where you are showing more then 30 colors on a map as at that point, its hard for users to match colors to a legend and keep which colors match which keys difficult to follow.
Hi @Nathan_Reese I'm aware I can go to 20 to solve that image, but my example was just that, an example.
My original post was about the problem when there are more than 30 and it doesn't wrap.
I think thats the pivotal point, you are expecting my use-case to fall into one that uses colours to match against a legend.
That is not what I'm looking for, I merely need to colourise polygons differently so that the colours are not the same for adjoining shapes. I cannot guarantee that there will always be less than 30 polygons on screen at any one time, and why should we have to? The Kibana system is a lovely product and handles 100s of polygons without breaking a sweat.
I'm just trying to get them differently coloured so polygons No.31 -> No.327 aren't all orange.
A Custom colour map is a possible solution, but I would be effectively saying
map "colour" : "#8a3d4f" to colour #8a4d4f and repeat that for every possible colour I want. We can certainly generate that table, but that has a bit of smell to it...
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.