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

Legend Alignment won't apply #1004

Open
AndreeaCristinaRadacina opened this issue Apr 18, 2023 · 3 comments
Open

Legend Alignment won't apply #1004

AndreeaCristinaRadacina opened this issue Apr 18, 2023 · 3 comments
Labels
bug This label could be used to identify issues that are caused by a defect in the product.

Comments

@AndreeaCristinaRadacina

Description

If I have multiple legend items, the alignment will not be applied anymore.

Step-by-step reproduction instructions

  1. Go to Charts Library.
  2. Choose one of the charts and edit it.
  3. Insert more table heads in the source file.
  4. Open Settings > General Settings > Legend.
  5. Change the alignment of the legend.

Screenshots, screen recording, code snippet or Help Scout ticket

https://www.loom.com/share/4d88700849cf472287b9364ce5c27a7d

Environment info

No response

Is the issue you are reporting a regression

No

@AndreeaCristinaRadacina AndreeaCristinaRadacina added the bug This label could be used to identify issues that are caused by a defect in the product. label Apr 18, 2023
@AndreeaCristinaRadacina
Copy link
Author

Also, would it be useful to offer an option that controls the number of items that appear before switching to the next row of items?

@vytisbulkevicius
Copy link
Contributor

@AndreeaCristinaRadacina,

You can control it in a way, by reducing the font-size of the legend so if you make the font smaller there are more items that fit in the row without pagination. I don't see other way to control it, of course, we can add UI probably that would reduce the font-size based on how many items the user wants to see without pagination but we can see if there is demand for such a feature.

As for current control font-size can be controlled via Manual Configuration section, for example:

{"legend":{"position": "top", "textStyle": {"fontSize": "8"}}}

@AndreeaCristinaRadacina
Copy link
Author

@vytisbulkevicius, thank you for sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This label could be used to identify issues that are caused by a defect in the product.
Projects
None yet
Development

No branches or pull requests

2 participants