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

X-Axis Labels Vanish On Resizing #7780

Open
MarcGJA opened this Issue Jun 1, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@MarcGJA
Copy link

MarcGJA commented Jun 1, 2018

Browser: Firefox 52.8.0
OS: Microsoft Windows [Version 6.0.6002]
Databases: H2 internal default, Server SQL external (joined in)
Metabase: 0.29.2
Host: Localhost:3000

Consolidation of values along the x-axis on resizing would be VERY helpful with time-series. As is they just vanish on resizing in a dashboard or resizing the browser window. Applies to charts & dashboards both native and embedded.
image
image

@jornh

This comment has been minimized.

Copy link
Contributor

jornh commented Jun 1, 2018

If you look in metadata settings what type is your Year field set to? Try setting it to number if it’s not already.

To me it doesn’t look like your years are getting interpreted as dates/numbers and hence NOT a time series but rather as a categorical type. I’m basing this on the vertical display of years which was a feature that got added in v0.28 or v0.29.

What’s the underlying data type in the database. If you can have it as a date type Metabase takes hints from that.

@MarcGJA

This comment has been minimized.

Copy link

MarcGJA commented Jun 2, 2018

Thanks for pointing that out @jornh, the field was changed to text in the custom query to permit each year to show. And yes the text fix permitting labels to rotate was a massive improvement over the way it was before with all the labels running into each other. As a date along with verifying the underlying table metadata for the field is "Number", however, the problem remains... At some point in resizing the values vanish. For the time being the workaround is to reduce the time-span shown (3rd illustration). But that too can only tolerate so much before the x-axis values disappear again on resizing. At the root of the problem I suspect that there are at least two problems: 1) number values do not rotate like text labels do and 2) whatever binning-type algo is being used to manage axis values doesn't have a requirement for at least 2 anchor values regardless of resizing.
image
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment