I have a QGIS line vector layer that contains two attributes: "attr1"
, "attr2"
.
I want to display it as shown below. The same line geometry two times with an offset in both directions, but the catch is that the coloring is based on the two attributes. Right now I did it by copying the layer and using a "categorized" symbology with the same color ramp, but once for the first, and once for the other attribute. Also, I set an opposite offset in both cases.
Is there a way to do this using only one layer and without a large amount of manual work? I could do it with rule-based symbology, but then I would have to set the colors manually. I also tried to merge the .qml style file of the two layer, but it didn't work out.