I want to create a legend next to my map in QGIS. Instead of the classes as legend entries (first picture), I want to add shading as shown in the second one.
I found this workaround "Create a Gradient Color Ramp Legend for Continuous Datasets in QGIS" on YouTube. But is there a smarter way?
How can I do this?