Selecting X-Axis attribute for Bar graph

In case of 2 groupby selections and displaying the bar graph, I wanted to understand how metabase is figuring out which attribute to show in the x-axis among the two selected?. This is based on what?

Any help is much appreciated!! TIA

Hi @truedrug
It's based on the "autoviz" (just an internal name for "magic"), which tries to guess the best visualization to show and which fields to select. It looks at the field fingerprints and prioritizes timeseries.
Have a look in the code for the particular visualization to understand exactly what it does.

Unfortunately, I didn't find anything with https://github.com/metabase/metabase/search?q=autoviz . Am I missing anything here?

@truedrug Like I said, it's not a function, just internal reference for the magic.

1 Like