malloy icon indicating copy to clipboard operation
malloy copied to clipboard

Column chart should have count on y-axis, bar chart should use x-axis.

Open tschomer opened this issue 1 year ago • 0 comments

What happens?

When you're measuring something with a group_by, the count is using the x-axis for the column chart - which makes it difficult to read. Folks are more used the count being the y-axis. Lets swap this around.

To Reproduce

simple query, like this, puts the number of homes on the x-axis, instead of the y-axis. note: column charts are currently named bar_chart. we need to fix that as well.

bar_chart

query: bathrooms is { aggregate: homes group_by: baths order_by: baths

image

OS:

MacOS

Malloy Client:

VSCode

Malloy Client Version:

v0.3.1695314318

Database Connection:

DuckDB

tschomer avatar Sep 22 '23 22:09 tschomer