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

strange behaviour of piechart function of QGIS #14379

Closed
qgib opened this issue Oct 26, 2011 · 11 comments
Closed

strange behaviour of piechart function of QGIS #14379

qgib opened this issue Oct 26, 2011 · 11 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Oct 26, 2011

Author Name: lokheart _ (lokheart _)
Original Redmine Issue: 4449
Affected QGIS version: master
Redmine category:symbology


I am using QGIS to visual health status of elderly in an elderly home, whether they have medical devices or not is one attribute that I am trying to visualize.

I have create the map using mapwindows, and use R to create a tab-delimited txt file to carry the medical device information (7 columns, 6 columns of 0 or 1, and one uid that will be used to join the bed layer in QGIS.

I used the diagram tab in the properties menu of the bed layer, and pie-chart is being used for visualization: if the elderly have 3 devices, the pie will be presented with 3 parts with 3 different colours. And strange things are visualized.

A majority of elderly do not have any devices (i.e. that should be straight zeros for the 6 column in the txt file). I support no pie chart should be visualized, but QGIS still show a solid pie using the last attribute I have inserted in the diagram tab of the properties menu.

I have tried to insert a csvt file to explicitly state that those medical device columns are integer, real, but it still fails. QGIS visual an attribute with value 0 as 1, if all of the attributes used for plotting are straight zeros.

Can anyone help?

Thanks.

The question was asked at GIS stackexchange: http://gis.stackexchange.com/questions/16194/strange-behaviour-of-piechart-function-of-qgis

@qgib
Copy link
Contributor Author

qgib commented Oct 26, 2011

Author Name: Giovanni Manghi (@gioman)


Can you please attach a small sample of your data?

@qgib
Copy link
Contributor Author

qgib commented Oct 26, 2011

Author Name: lokheart _ (lokheart _)


Giovanni Manghi wrote:

Can you please attach a small sample of your data?

I can give it to you tomorrow morning, but it's something like the one below:

"uid" "A" "B" "C" "D" "E" "F"
"1111-R1" 0 0 0 0 1 0
"1111-R2" 1 0 0 1 0 0

Hope this helps, thanks again.

@qgib
Copy link
Contributor Author

qgib commented Oct 26, 2011

Author Name: Nathan Woodrow (@NathanW2)


I can confirm. The pink one at the top should have nothing, or at least see though.

image

Looks like a bug to me.

For now the best way to handle this would be have two layers using the query string that underdark put on GIS stackexchange. The first layer with:

A + B + C + D + E + F > 0 to show all the records that have something and have diagrams enabled on this layer.

and the other with

A + B + C + D + E + F = 0 to show all with no devices.

QGIS queries are real time so if you happen to add a devices to one that didn't have one it will show up in the layer with the diagram and not in the second layer.

@qgib
Copy link
Contributor Author

qgib commented Nov 12, 2011

Author Name: Tim Sutton (Tim Sutton)


  • fixed_version_id was changed from Version 1.7.1 to Version 1.7.2

@qgib
Copy link
Contributor Author

qgib commented Nov 30, 2011

Author Name: Giovanni Manghi (@gioman)


  • fixed_version_id was changed from Version 1.7.2 to Version 1.7.3

@qgib
Copy link
Contributor Author

qgib commented Dec 16, 2011

Author Name: Giovanni Manghi (@gioman)


  • fixed_version_id was changed from Version 1.7.3 to Version 1.7.4

@qgib
Copy link
Contributor Author

qgib commented Apr 16, 2012

Author Name: Paolo Cavallini (@pcav)


  • fixed_version_id was changed from Version 1.7.4 to Version 1.8.0
  • crashes_corrupts_data was configured as 0
  • version was configured as master

@qgib
Copy link
Contributor Author

qgib commented Aug 15, 2012

Author Name: Matthias Kuhn (@m-kuhn)


Fixed on my repo:

m-kuhn@97a5427

Draws an empty (transparent) circle for pie charts with only 0-values.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Aug 16, 2012

Author Name: Giovanni Manghi (@gioman)


Matthias Kuhn wrote:

Fixed on my repo:

m-kuhn@97a5427

Draws an empty (transparent) circle for pie charts with only 0-values.

Hi Matthias, if you are going to merge into master I guess we can close this ticket.

@qgib
Copy link
Contributor Author

qgib commented Sep 4, 2012

Author Name: Paolo Cavallini (@pcav)


  • fixed_version_id was changed from Version 1.8.0 to Version 2.0.0

@qgib
Copy link
Contributor Author

qgib commented Sep 5, 2012

Author Name: Matthias Kuhn (@m-kuhn)


Fixed in master


  • resolution was changed from to fixed
  • status_id was changed from Feedback to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers labels May 24, 2019
@qgib qgib added this to the Version 2.0.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

No branches or pull requests

1 participant