Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE][diagrams] New diagram type "stacked bars" #33043

Merged
merged 1 commit into from
Nov 24, 2019

Conversation

nyalldawson
Copy link
Collaborator

Stacks bars of varying colors for each attribute on top of each other
vertically or horizontally.

Designed to match the "Stacked" chart renderer option available in ArcGIS.

Sponsored by SLYR

image

@@ -39,6 +39,21 @@ class CORE_EXPORT QgsDiagram
{
public:

#ifdef SIP_RUN
SIP_CONVERT_TO_SUBCLASS_CODE
if ( sipCpp->diagramName() == QStringLiteral( "Pie" ) )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice; that sip conversion could probably make its way into 3.10 (minus the stacked bit)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, definitely. (that said, it's actually not that vital given that the subclasses don't really expose anything useful)

Stacks bars of varying colors for each attribute on top of each other
vertically or horizontally.

Sponsored by SLYR
@nyalldawson nyalldawson merged commit 204bd47 into qgis:master Nov 24, 2019
@nyalldawson nyalldawson deleted the stacked branch November 24, 2019 09:11
@roya0045
Copy link
Contributor

Hi there, just tested it when checking the diagram issue and I noticed there was always a gap between categories. And when checking the validation images of this PR the gap is also there. I wanted to know if it was intended as I thought it was a bug. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants