1

Is there a way to display percentages above a bar plot? So its easier for viewers to determine how much of an environment is one type (another visual aid). We aren't supposed to show pie graphs. Alternatively, is there a way to display this in the legend(if the other option is not possible)? Otherwise I will go and manually do it for all the graphs. Also is there a way to colour the bar graph in accordance of the feature colour it already has?

1

2 Answers 2

2

Give a look to this example with Geometry Generator created by Michel Stuyts. You can also download a QML file that works with point layers.

enter image description here

Obviously, you can reuse the code to adapt to your geometry and playing a bit with the expression you can show percentage instead of value.

1

From DataPlotly 3.5 a new feature has been introduced (https://github.com/ghtmtt/DataPlotly/pull/203).

enter image description here

You can choose to display as text the additional hover label in the plot advanced configuration. You can also add an expression rather than a pure layer field, so you can use the aggregation functions of QGIS like "my_field"/sum("my_field")*100 to get the desired result

Your Answer

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

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