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

How to put several graphs "gauge" on the same webpage #3942

Open
Phil353556 opened this issue Jan 30, 2025 · 6 comments
Open

How to put several graphs "gauge" on the same webpage #3942

Phil353556 opened this issue Jan 30, 2025 · 6 comments
Labels

Comments

@Phil353556
Copy link

Phil353556 commented Jan 30, 2025

Hello,

How to have several "gauge" graph on a row and not one behind the previous ?
Thanks for any idea
Phil

Image

@Phil353556 Phil353556 changed the title several graphs "gauge" on the same webpage, the fourth is huge size How to put several graphs "gauge" on the same webpage, one nearside of the other, in one row Jan 30, 2025
@Phil353556 Phil353556 changed the title How to put several graphs "gauge" on the same webpage, one nearside of the other, in one row How to put several graphs "gauge" on the same webpage Jan 30, 2025
@netil netil added the question label Jan 31, 2025
@Phil353556
Copy link
Author

hi,
I saw class=bb , may be it is needed to overwrite but how to do that in a good way?

Image

Thanks
Phil

@netil
Copy link
Member

netil commented Feb 3, 2025

Hi @Phil353556, you can override or re-style default css.
Don't know exactly what want to achieve, but made a simple example might help.

@Phil353556
Copy link
Author

Phil353556 commented Feb 3, 2025

Hi,
What I should like to have is : all the four gauges on a same line or row.
Something like this:
Image

I didn't see what should be overiden to achieve this result.

I look at your example, what about for css, to modify inline by inline-flex?
display: inline-flex;

Thank you so much for your help
Phil

@netil
Copy link
Member

netil commented Feb 4, 2025

@Phil353556 well in that case, is not about chart functionality. Is about positioning elements.
There're several ways to do that, but simple ways is

.bb {
   width: 150px;  /* set the width you need */
   float: left;
}

Checkout working example:

@Phil353556
Copy link
Author

thanks,
but in this case

before the div doesn't center the gauges on the webpage.

@netil
Copy link
Member

netil commented Feb 4, 2025

well, in that case add some container element

Image
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.bb {
   width: 150px;
}

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

No branches or pull requests

2 participants