kgabryje opened a new pull request, #33116: URL: https://github.com/apache/superset/pull/33116
### SUMMARY Currently in Echarts Series charts, you can only sort X Axis by a specific metric if there is only 1 metric specified and no dimensions. This PR enables sorting x axis by a specific metric when there are more than 1 metrics. Sorting by a specific metric is still not available when there are dimensions specified. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF <!--- Skip this if not applicable --> https://github.com/user-attachments/assets/025017f6-0f45-423e-beab-6930cd233a1d ### TESTING INSTRUCTIONS 1. Create an echarts series chart, like a bar chart 2. Set a non-temporal x-axis and some metric 3. Verify that you can sort x axis by that metric and x-axis column 4. Add more metrics 5. Verify that you can sort x axis by any of the specified metrics, x-axis column and measures such as total, max, min, average 6. Add a dimension 7. Verify that you can only sort by measures such as total, max, min, average ### 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 - [x] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351)) - [x] Migration is atomic, supports rollback & is backwards-compatible - [x] Confirm DB migration upgrade and downgrade tested - [x] Runtime estimates and downtime expectations provided Current: 0.19 s 10+: 0.21 s 100+: 0.12 s 1000+: 0.20 s - [ ] 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]
