-
Notifications
You must be signed in to change notification settings - Fork 16.6k
fix: add order by for bar charts #12661
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
Conversation
706f82a to
e72968d
Compare
Codecov Report
@@ Coverage Diff @@
## master #12661 +/- ##
==========================================
- Coverage 66.85% 63.21% -3.64%
==========================================
Files 1018 486 -532
Lines 49776 29983 -19793
Branches 4869 0 -4869
==========================================
- Hits 33278 18954 -14324
+ Misses 16375 11029 -5346
+ Partials 123 0 -123
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
villebro
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix @bryanck !
|
Sure, though I noticed this is happening elsewhere, so I'll have another PR (word cloud, multi-line graphs) |
Co-authored-by: Bryan Keller <[email protected]>
SUMMARY
This adds an order by clause for the bar chart, ordering by the first metric descending. Without the ordering, the query will return an arbitrary set of rows if the query is limited, rather than the top N rows.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
Create a bar chart against a dataset. Limit the result to something less than the total number of rows. The top N rows, based on the metric, should be returned.
ADDITIONAL INFORMATION
Fixes #12622