Better legend ordering when using date histograms #34567
Labels
enhancement
New value added to drive a business result
Feature:XYAxis
XY-Axis charts (bar, area, line)
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
usability
A common use case is to show the top N things over time e.g the top 5 committers to the elastic repos.
There's two ways to answer that question in Kibana:
In the example screenshot below we have opted for option 2:
The order of the legend labels here is what I would like to question.
kimchy
is the number-one committer and the first listed legend label but committers 2 through 9 are not especially prolific.The ordering of labels here is somewhat complex:
I imagine that's not especially useful to naive users who were just hoping to get a handle on the top elastic committers. Prolific committer Rashid for example is buried some way down the list.
We should perhaps do one of two things here:
a) Point users to option 1 to redefine the query.
b) Display the results more usefully.
A more useful display format would be to rank these labels by the chosen metric (in this case count, but could equally be something like average size of commit).
This would require two elasticsearch requests - one to first discover the top ranked terms on a monthly basis and a follow-up request to globally order these discovered terms by the same metric used in the monthly selection process (this involves using the terms agg with an
include
clause to list the discovered committers ).The text was updated successfully, but these errors were encountered: