I am using SVG map extension to display the sales across the world. Currently, the color expression I use is RVG(225,96,225) which gives me one color for all the countries where sales generate. I am wondering what color expression is able to display different colors for different countries. Thank you!
Re: question regarding colors in SVG map extension
This is pretty simple: The color formula can be one simple color, could be a field which holds a color value, or a complex formula with IF(..) condition.
Be aware of one thing: The SVG extension automatically applies "heat coloring" according to the Min and Max range of the measure, so the above color expression might appear lighter until even White if the Measure is small. If you don't want this, put a constant like 1 into the measure
Here is an simple example where the color formula is =IF(Country='DE', Yellow(), Green())