7

I would like to label data entries with multiple fields (that is easy, using the expression editor) in QGIS 2.18. But I fail to alter the styling of the labels, so that say the colour of the label from one data field (e.g., in the first line) was different to the second label value (second line). An older answer had the standard solution (duplicating the layer, Two different colours in label) I am wondering whether QGIS 2.18 or even the up and coming 3.0 will have a solution.

2

1 Answer 1

5

I am also interested in this solution, if any available.

Below is a way to use Text diagram which may or may not gives you what you are looking for. It is a multiple-colored texts, but does not offer much flexibility.

enter image description here

Anyway, just for your thoughts.

1
  • Great, thanks! It will do, although it is not necessarily always useable. In particular, I will have to see if the white background can be set to transparent. Also, label collisions will have to be treated somehow. The problem with a two layer solution is that conflicts are hard to manage together. as far as I can tell.
    – MartinT
    Jun 12, 2017 at 12:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.