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 add Sticky tooltips on Hierarchy #1785

Open
choconutzy opened this issue Nov 14, 2024 · 3 comments
Open

How to add Sticky tooltips on Hierarchy #1785

choconutzy opened this issue Nov 14, 2024 · 3 comments
Labels

Comments

@choconutzy
Copy link

@martynasma
Copy link
Collaborator

Do you have a demo of you actual chart?

@choconutzy
Copy link
Author

Do you have a demo of you actual chart?

https://codepen.io/choconutzy/pen/JjgzeJv
i've add showTooltipOn: "always"

@martynasma
Copy link
Collaborator

Two things:

  1. showTooltipOn is Sprite's setting, not tooltip's.
  2. You need to created a tooltip for each individual node if you want to show them all at once:
series.nodes.template.setup = function(target) {
  target.setAll({
    showTooltipOn: "always",
    tooltip: am5.Tooltip.new(root, {
      labelText: "[bold]{name}xxx",
    })
  });
}

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