3

I would like to be able to add summary statistics to a legend in print composer e.g.

GB Agricultural Land Classification: - Grade 1 (Area: xx hectares, xx% of total) - Grade 2 (Area: xx hectares, xx% of total) ...

The vector layer (GB Agricultural Land Classification) is styled by category (Classification - Grade 1, Grade 2 etc).

Is this possible?

2
  • Does it have to be part of the legend, or can it be in a text box on the layout?
    – Simbamangu
    Commented Jan 20, 2017 at 11:33
  • I wanted it as part of the legend, it would be a good feature to be able to use an expression for legend labeling. Commented Jan 20, 2017 at 12:10

1 Answer 1

1

Here are some guidelines about how to solve this:

https://docs.qgis.org/3.28/en/docs/user_manual/print_composer/composer_items/composer_legend.html#data-define-the-legend-labels

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.