I want to label my values in a specific color. They are all in the same shapefile which makes it complicated.
For example:
- if value is 10, it should appear in blue
- if value is 15, it should appear in green
- if value is 25, it should appear in red
How can I do that?
Best Answer
If you right-click your layer and go to:
Use the
Show labels for this layer
option, select the field to label with and then click the data-defined button for the Color section as shown below:Then enter an expression like:
or
Click Apply then OK and hopefully you should see your labels with different colours:
Tested on QGIS 2.16.1-Nødebo.