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: Align graphs with and without legends #105

Closed
michaelblight opened this issue Jun 9, 2019 · 4 comments
Closed

Feature Request: Align graphs with and without legends #105

michaelblight opened this issue Jun 9, 2019 · 4 comments
Labels
enhancement Something that can be improved feature request New feature or request

Comments

@michaelblight
Copy link
Collaborator

I would like two graphs side-by-side with the same height. I have one that plots one series, and therefore cannot have a legend, and other plots multiple series, and needs its legend. They cannot be aligned because the legend is not included in height. One option would be to allow legend to be set to "always" to display even if there's only one series. Or is there another way I'm not aware of. At the moment I'm just plotting the same data twice to get a dummy legend, which is a bit of a hack.

@kalkih kalkih added enhancement Something that can be improved feature request New feature or request labels Jun 13, 2019
@kalkih
Copy link
Owner

kalkih commented Jun 18, 2019

The card does already adjust to fill the whole container height by default, so if you place the two graphs in a horizontal-stack it will look something like this.

hyperion_8123_lovelace_4

@kalkih kalkih closed this as completed Jun 18, 2019
@michaelblight
Copy link
Collaborator Author

Ah, my bad. I have them at the bottom of two vertical stacks that are side-by-side. I can fix that. Thanks.

@kalkih
Copy link
Owner

kalkih commented Jun 18, 2019

Awesome, yup, adding a horizontal-stack should do the trick!
I had almost forgot I added that "feature" 🙂

@michaelblight
Copy link
Collaborator Author

Looks much better now, thanks again.

Screen Shot 2019-06-20 at 5 06 20 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Something that can be improved feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants