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

No way to center legend title in horizontal mode when x is set to a value between 0 and 1 #6668

Closed
GeorgeFlorian opened this issue Jul 10, 2023 · 5 comments
Labels
bug something broken

Comments

@GeorgeFlorian
Copy link

GeorgeFlorian commented Jul 10, 2023

I am trying to center a legend title with the legend being in horizontal mode, but there is no way of doing it.
The only prop that modifies the legend's title positioning is side, which does not center it.

The current behavior is that the legend title is always positioned at the beginning of the legend area.

https://codepen.io/bleah1/pen/bGQYvbm?editors=1010

image

@28raining
Copy link
Contributor

Created PR
#6711

@archmoj archmoj added the feature something new label Aug 21, 2023
@GeorgeFlorian
Copy link
Author

GeorgeFlorian commented Sep 6, 2023

Created PR #6711

Doesn't seem to work:
https://codepen.io/bleah1/pen/bGQYvbm?editors=1010

There is no difference between side: "top center", side: "top" or side: "top right".

Am I doing something wrong ?

@archmoj
Copy link
Contributor

archmoj commented Sep 7, 2023

@GeorgeFlorian thanks for the report.
It is working when x is set to 0 or 1 : codepen
Otherwise it looks like a bug.

@archmoj archmoj added bug something broken and removed feature something new labels Sep 7, 2023
@archmoj archmoj changed the title No way to center legend title in horizontal mode No way to center legend title in horizontal mode when x is set to a value between 0 and 1 Sep 7, 2023
@archmoj
Copy link
Contributor

archmoj commented Sep 7, 2023

@28raining I am wondering if you would be able to have a closer look at the issue above?

@28raining
Copy link
Contributor

Created #6725

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

No branches or pull requests

4 participants