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

[docs] can't configure the tooltip for PieChart #2858

Open
TuPhung369 opened this issue Feb 18, 2025 · 0 comments
Open

[docs] can't configure the tooltip for PieChart #2858

TuPhung369 opened this issue Feb 18, 2025 · 0 comments
Labels
waiting for maintainer Triage or intervention needed from a maintainer

Comments

@TuPhung369
Copy link

tooltip: {
  title: (datum) =>
    `<span style="color: ${COLORS[0]}; font-weight: bold;">${datum.name}</span>`, // Title formatting
  items: [
    {
      channel: "x",
      name: "Role",
      value: "name",
      color: COLORS[0],
    },
    {
      channel: "y",
      name: "Percent",
      value: "value",
      color: COLORS[2],
      valueFormatter: (value) => `${value.toFixed(1)}%`,
    },
  ],
},

But it show

Image

Image

=> the percent show as total of itself and all of indexes before.

can not make the dynamic Colors for tooltip also.

@github-actions github-actions bot added the waiting for maintainer Triage or intervention needed from a maintainer label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for maintainer Triage or intervention needed from a maintainer
Projects
None yet
Development

No branches or pull requests

1 participant