-
Notifications
You must be signed in to change notification settings - Fork 50
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
Ordering of bars in histogram? #325
Comments
can you please share the input data (also a small piece of it)? |
Sorry for my late reply – I have been on summer holiday. Please find attached data and Qgis project as well as a PDF illustrating the problem. The Layout in the project is an atlas and I want to make a histogram only for points inside the current atlas feature. If I tick “Only use features in visible map” I get the expected sorting order of the bars in the histogram – but this is not the histogram I want to show. With no ticks or tick in “Use only features inside atlas feature” I get another and for me not right sorting order. I have tried adding starting letters a to d to the intervals (as shown in the PDF) but it did not make any difference. |
Could it have an order column organize the data plot? I have the same problem. I create a Bar Plot with round numbers but when its plotting, the data order by the ID of attribute table (It create an order X axis based on the round number, but the color of the bar if I create a customization rampage color by the original number -decimal 0,000-, its color based on ID, so it don't have uniform transition colors). |
I really need also ordering the X-values for histogram. Is the PR order by expression soon merged ? |
the solution: You need reorder the data table Id, by column, using MMQGIS. It will change the Id by the order you want. And the chart will plot correctly. |
I cannot figure out what determines the ordering of bars in a histogram.
With a text attribute as X field I would expect the bars to be shown in alphabetical order but that is not the case:
![Bar Order](https://private-user-images.githubusercontent.com/1887531/245120822-bafefb99-f46e-4c30-b89d-5c409ba28f52.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4NDkwMzIsIm5iZiI6MTcyNDg0ODczMiwicGF0aCI6Ii8xODg3NTMxLzI0NTEyMDgyMi1iYWZlZmI5OS1mNDZlLTRjMzAtYjg5ZC01YzQwOWJhMjhmNTIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjhUMTIzODUyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzAyMzBjMmNiYzgyZjFjODFlYjg2YmRkZmRmYTc5OTRjOGEyYjBlMTI1ZDQyY2YwMmI3MWU4MzU2OGQ4OTljNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.KqxdCKWgG-IKrmCt66AvGQbyk3Tk3QW1GLDcv-17gaQ)
The text was updated successfully, but these errors were encountered: