X-axis order in Line chart gets messed up after adding sub-bucket aggregation #22231
Labels
Feature:Visualizations
Generic visualization features (in case no more specific feature label is available)
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Kibana version: 6.3.x
Elasticsearch version: 6.3.x
Server OS version:
Browser version: FireFox 61.0.1
Browser OS version:
Original install method (e.g. download page, yum, from source, etc.): download page
Describe the bug:
Adding a terms aggregation sub-bucket (by split series) in a Line chart seems to break the original orderBy of X-axis.
See screenshot 1 where Y-axis is the count metrics, X-axis (score-rank) is ordered by desc. And it's working:
[screenshot 1]
However, after adding a terms aggregration sub-bucket (with "literature.keyword" as shown in the screenshot), the order doesn't work any more:
[screenshot 2]
Expected behavior:
X-axis order should keep the same.
Any additional context:
Elasticsearch response from inspector shows the buckets in ascending order:
The text was updated successfully, but these errors were encountered: