month order with chart component #1073
-
Beta Was this translation helpful? Give feedback.
Answered by
lovasoa
Oct 29, 2025
Replies: 2 comments 2 replies
-
|
Are you using the latest version of sqlpage ? Isn't this the same as #951 ? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jhautefeuille
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Hey ! I had a bit of a deeper look at your code.
Categories in bar charts with sparse data (with missing values for some x,series combinations) are sorted by name. You can fix your chart by adding the month number as a prefix in the label (add
strftime('%m', date) || ' - ' ||before your case expression).But the cleanest way to handle this is to ensure your request returns data for every value of month and status, and sort by month number, not month name: