Sorting of X-Axis is incorrect when "Split Series" is also enabled #25687
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.4.2
Elasticsearch version: 6.4.2
Server OS version: Windows 10 17134.345 / CentOS 6 / CentOS 7
Browser version: Internet Explorer 11.345.17134.0 / Microsoft Edge 42.17134.1.0 / Mozilla Firefox 63.0.1
Browser OS version: Windows 10 17134.345
Original install method (e.g. download page, yum, from source, etc.): Download page
Describe the bug:
Bar chart sorting of the X-Axis is incorrect when using both "X-Axis" and "Split Series" bucket options at the same time.
Steps to reproduce:
Expected behavior:
Screenshots (if relevant):
Disabled "Split Series" bucket, correct ordering of X-Axis bars with custom aggregation sort
Enabled "Split Series" bucket, incorrect ordering of X-Axis bars ("31-45 Days" is shifted far-right)
Provide logs and/or server output (if relevant):
Elasticsearch Response when "Split Series" was enabled, showing ES returned data in proper order
Any additional context:
We recently upgraded our Elastic Stack installation from a 5.X version to 6.4.2 (completely clean install, no restoration of previous indexes). Back in 5.X we noticed that "Split Series" sorting of the Legend was more of a suggestion than a consistent sort. Now, while testing 6.4.2 we have found that the X-Axis is now inconsistent as well.
What's worse, though, is that Inspecting the Elasticsearch response shows the primary aggregation buckets are returned in the correct order, thus Kibana is inconsistently disrupting the order of perfectly ordered X-Axis buckets. This is a regression from 5.X.
The text was updated successfully, but these errors were encountered: