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

Increase the font size of large scalar cards #2552

Closed
cagiraudo opened this issue May 6, 2016 · 15 comments · Fixed by #21003
Closed

Increase the font size of large scalar cards #2552

cagiraudo opened this issue May 6, 2016 · 15 comments · Fixed by #21003
Assignees
Labels
Type:New Feature Visualization/Scalars Numbers, progress bars, gauges
Milestone

Comments

@cagiraudo
Copy link

cagiraudo commented May 6, 2016

Hi,

I am new with MetaBase. First of all i want to congratulate the whole team

I have the same problem that this issue that was supposedly fixed in v0.16 #2125

I want to make a dashboards with big numbers to be seen from far in a office, but even if i make the card very big, the font-size of the number doesn't scale
seleccion_072

Thanks

  • I am using the Chrome browser.
  • My computer's OS is Ubuntu.
  • I'm running Metabase in ubuntu server
  • My database is MySQL.
  • My Metabase version is v0.17.0.

⬇️ Please click the 👍 reaction instead of leaving a +1 or update? comment

@kdoh
Copy link
Member

kdoh commented May 6, 2016

Hey there @cagiraudo! Have you tried putting the dashboard in fullscreen mode?. We bump the type size on scalars a bit in that mode to help with longer distance viewing like the use case you're describing.

@cagiraudo
Copy link
Author

Hi @kdoh

I tried in fullscreen and it's the same. The number is tiny in the center of the card.

If you need a screen print or more info ask me

@mazameli mazameli changed the title Scalar number font-size Increase the font size of large scalar cards May 6, 2016
@mazameli
Copy link
Contributor

mazameli commented May 6, 2016

@cagiraudo so technically this is working as intended, but it seems, @kdoh, that we're hearing that people want to have even larger font sizes when they make a scalar card super wide. Any reason why we wouldn't want to do that?

@kdoh
Copy link
Member

kdoh commented May 6, 2016

@mazameli Let me do a bit of testing and confirm @cagiraudo's not hitting some kind of bug / unintended state with a wide scalar in fullscreen. In fullscreen we should definitely make the size reasonably large and I was under the impression it was doing that.

@mazameli
Copy link
Contributor

mazameli commented May 6, 2016

Ah, maybe my mistake. I had interpreted it as there was a disconnect around what "big" means/should mean.

@cagiraudo
Copy link
Author

To make it a litlle more clear.

This is what i have when i make a big number card

seleccion_075

And this is what i would expect to see if i make a big number card to display in a LCD

seleccion_074

Hope that make it a little more clear

@MrMauricioLeite
Copy link

MrMauricioLeite commented May 13, 2016

I guess I opened a issue long ago about this.... but apparently did not made it's way to a change in code.

Please, notice that as a dashboard designer we know that the number is going to be super-sized if we get the card to be too big. We expected that. But Metabase forces us to use what it think that is the 'max font size'.

Please change this default behaviour. Please.... 😿

@imsky

This comment has been minimized.

@ASochat

This comment has been minimized.

@SharmilaNadesan

This comment has been minimized.

@flamber
Copy link
Contributor

flamber commented Jan 31, 2019

There's currently no way to do this with CSS - well, not in a way, where it doesn't mess up the label.
Solutions are JavaScript or SVG: https://css-tricks.com/fitting-text-to-a-container/

@mickdee

This comment has been minimized.

@kevinsimper
Copy link

What are the code that needs to be changed for this feature? I tried looking at the frontend code but I could not easily find it.

Also, would it be a setting or just changing the default behavior?

@flamber
Copy link
Contributor

flamber commented Mar 19, 2022

@kevinsimper We're currently working on this - have a look at #21003

@kevinsimper
Copy link

@flamber Nice, I added a comment. I think the fontsize either needs to user defined or use a algorithm similar to https://brorlandi.github.io/big-text.js/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type:New Feature Visualization/Scalars Numbers, progress bars, gauges
Projects
None yet
Development

Successfully merging a pull request may close this issue.