A colleague alerted me to this yesterday so I did some testing for myself.
Map layouts with a theme and rule based, categorised or graduated style for a vector layer will show feature counts for each grouping/range in the layout but once exported to an image or PDF the counts are replaced with an "N/A" label.
Removing the map theme fixes the issue.
Steps to reproduce the issue
Create a project and add a base map and a vector layer to which you can apply a rule based, catergorised or graduated style to
Apply one of the above style types
Create at least one map theme in the project
Create a new layout and set the map to follow the theme
Add a legend for your vector layer and enable feature count from the legend properties
Export to PDF or image
Versions
3.34.4 and 3.36.0 (RC)
Supported QGIS version
[X] I'm running a supported QGIS version according to the roadmap.
What is the bug or the crash?
A colleague alerted me to this yesterday so I did some testing for myself.
Map layouts with a theme and rule based, categorised or graduated style for a vector layer will show feature counts for each grouping/range in the layout but once exported to an image or PDF the counts are replaced with an "N/A" label.
Removing the map theme fixes the issue.
Steps to reproduce the issue
Versions
3.34.4 and 3.36.0 (RC)
Supported QGIS version
New profile
Additional context
No response