-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Comments
Author Name: Giovanni Manghi (@gioman) Can you please attach a small sample of your data? |
Author Name: lokheart _ (lokheart _) Giovanni Manghi wrote:
I can give it to you tomorrow morning, but it's something like the one below: "uid" "A" "B" "C" "D" "E" "F" Hope this helps, thanks again. |
Author Name: Nathan Woodrow (@NathanW2) I can confirm. The pink one at the top should have nothing, or at least see though. 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. |
Author Name: Tim Sutton (Tim Sutton)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Paolo Cavallini (@pcav)
|
Author Name: Matthias Kuhn (@m-kuhn) Fixed on my repo: Draws an empty (transparent) circle for pie charts with only 0-values.
|
Author Name: Giovanni Manghi (@gioman) Matthias Kuhn wrote:
Hi Matthias, if you are going to merge into master I guess we can close this ticket. |
Author Name: Paolo Cavallini (@pcav)
|
Author Name: Matthias Kuhn (@m-kuhn) Fixed in master
|
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
The text was updated successfully, but these errors were encountered: