Closed flamber closed 1 year ago
Spent some time looking into this. This is happening because the graph.series_order
forces the order of the series in LineAreaBarChart
. Because it's a single array, we may also need to sort the order of the rows in the individual series.data.rows
response. However, the relationship between series_order and breakouts seems like it might be a complicated one. To me the more important part of this is that you have no way to order K
anymore, not O
. We may need to come up with some rules like not being able to sort on a second dimension in order for it to make much sense.
Hi I have the same issue, Something is broken concerning the sort of the x-axis for stacked chart between v0.44.6 and v0.45.1. See my comment here: https://discourse.metabase.com/t/latest-update-breaks-x-axis-sorting/23135/3
@npfitz I suspect you already saw this post but that helped make things more clear for me. It seems like it may require some refactoring, but I wonder if it's feasible for us to get to a place where we:
I feel like ordering the x-axis series should ideally be independent of the new functionality where you can choose how to order breakouts, right? Or maybe I'm missing something more nuanced here.
I actually think I have a fix for this coming today. When ordering the series we are removing the _raw
prop from what gets passed around. This has caused a couple issues (also fixes #27063 ). Making some tests now.
Describe the bug Changing sorting does not apply for X-axis anymore, which has been a workaround to override the automatic ordering. Regression since 0.45.0
To Reproduce
Expected behavior 0.44.6
Information about your Metabase Installation: Tested 0.44.6 thru 0.45.1