villebro opened a new pull request, #23273: URL: https://github.com/apache/superset/pull/23273
### SUMMARY When using horizontal orientation on the bar chart, the base axis labels are rendered in reverse order, i.e. the first element is on the bottom. This is in contrast to e.g. Tableau that renders the first item on the top. In addition to the order being incorrect, this sometimes causes the first category to fail to render if there's not enough space to render all labels. This is due to the labels being rendered from first to last, meaning that the first label always gets rendered. ### AFTER Now flipping the orientation renders the first item on top: https://user-images.githubusercontent.com/33317356/222674897-f1fb50e4-23b4-4891-90f5-90239b1c8b51.mp4 Now the first category is always rendered, even if some categories need to be truncated:  ### BEFORE Previously the first item was on the bottom: https://user-images.githubusercontent.com/33317356/222674983-46d98e9d-a484-4893-96e0-0e55d4e8192d.mp4 Previously the last category was always rendered:  ### Screens from Tableau: Vertical:  Horizontal:  ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF <!--- Skip this if not applicable --> ### TESTING INSTRUCTIONS <!--- Required! What steps can be taken to manually verify the changes? --> ### ADDITIONAL INFORMATION <!--- Check any relevant boxes with "x" --> <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue --> - [ ] Has associated issue: - [ ] Required feature flags: - [ ] Changes UI - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351)) - [ ] Migration is atomic, supports rollback & is backwards-compatible - [ ] Confirm DB migration upgrade and downgrade tested - [ ] Runtime estimates and downtime expectations provided - [ ] Introduces new feature or API - [ ] Removes existing feature or API -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
