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

Label background still shows even if label text has been hidden #1418

Closed
c-ody opened this issue Mar 21, 2024 · 2 comments
Closed

Label background still shows even if label text has been hidden #1418

c-ody opened this issue Mar 21, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@c-ody
Copy link

c-ody commented Mar 21, 2024

Bug description

This might be a feature, not a bug (or I might be doing something wrong), but I noticed that, in a Treemap, when a label is too small and the text is hidden, the label's background is still shown, which results in an empty rectangle.

If it's not a bug, is there a way to hide the label's background rectangle when the label's text is not displayed due to it not having enough space?

For a minimal example, I took your demo Treemap (https://www.amcharts.com/demos/drill-down-treemap/), removed the logos and made the text visible again, made the chart smaller, added padding to the labels, and gave the labels a background rectangle: https://jsfiddle.net/fjgke5c7/

@martynasma
Copy link
Collaborator

It's most probably an oversight on our end. We'll need to fix it, or provide some other workaround.

Stay tuned.

@martynasma martynasma added the bug Something isn't working label Mar 21, 2024
@martynasma martynasma self-assigned this Mar 21, 2024
@martynasma martynasma added the in next release Implemented. Available soon. label Mar 21, 2024
@martynasma
Copy link
Collaborator

Fixed in 5.8.7.

[5.8.7] - 2024-03-25

Fixed

  • If a Label with background was hidden due to oversizedBehavior rule, the background was still visible.
  • Moving XYCursor with keyboard were not always properly updating adapter-populated tooltips.
  • HTML-based tooltips were not being updated properly in some cases.
  • Labels of a zero-value slices on a Venn diagram will not be displayed anymore.
  • Sankey links were ignoring dx and dy settings set on nodes.
  • A JS error could occur when loading on-demand data in some specific cases.
  • Series range affected by an axis range was not using settings from its tempalteField.
  • When data grouping was enabled on DateAxis, calling zoomToDates() (and zoomToValues()) could result zooming to slightly different dates.

Full change log.

Download options.

Make sure you clear your browser cache after upgrading. And feel free to contact us again if you are still experiencing this issue.

@martynasma martynasma removed the in next release Implemented. Available soon. label Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants