Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Option to put x axis on the top #40

Open
mroswell opened this issue Sep 24, 2021 · 1 comment
Open

Feature request: Option to put x axis on the top #40

mroswell opened this issue Sep 24, 2021 · 1 comment

Comments

@mroswell
Copy link

A user submitted this request:

For https://disinfectants.saferortoxic.org/disinfectants/listN?_facet=Safer_or_Toxic#g.mark=bar&g.x_column=Safer_or_Toxic&g.x_type=ordinal&g.y_column=Company&g.y_type=ordinaI
Is there any way to put the x axis on the top instead of the bottom because you have to scroll a while before you understand which side is safer and which side is toxic.

@mroswell
Copy link
Author

Issue #35 remains quirky, sometimes the chart shows in the vega editor, and sometimes it doesn't. But at one point I was able to open the chart in the vega editor.

Changing the config tab excerpt from:

  "axisX": {"grid": true, "tickSize": 10},

to:

  "axisX": {"grid": true, "tickSize": 10, "orient":"top"},

Put the label on the top.

This is a good clue, in any case, for anyone who is able to take this further, and actually modify datasette-vega to default to that.

Especially useful when a chart is a long scroll down.

(This could be tricky to apply, because swapping the orientation to top really is only useful for long vertical charts.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant