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

Pie chart tooltip #122

Open
GGuinea opened this issue Feb 19, 2024 · 4 comments
Open

Pie chart tooltip #122

GGuinea opened this issue Feb 19, 2024 · 4 comments

Comments

@GGuinea
Copy link

GGuinea commented Feb 19, 2024

Hi!

I'm trying to add tooltip for this simple pie chart https://chartscss.org/charts/pie/ but it sounds that it's not yet supported. Am I right?

@jaimeiniesta
Copy link

jaimeiniesta commented Feb 22, 2024

This can be done using daisyUI:

https://daisyui.com/components/tooltip/

For example,

<tr>
  <th scope="row">USA</th>
  <td style="--size: 0.46">46</td>
  <td style="--size: 0.37">37</td>
  <td style="--size: 0.38" class="tooltip tooltip-right" data-tip="38 medals">38</td>
</tr>

Captura de pantalla 2024-02-22 a las 10 16 04

@jaimeiniesta
Copy link

Oh, I just saw there are tooltips also in Charts.css 👍

https://chartscss.org/components/tooltips/

@GGuinea
Copy link
Author

GGuinea commented Feb 23, 2024

@jaimeiniesta thank you. Yeah for different types of charts its working, but not for pie chart.

@jaimeiniesta
Copy link

@GGuinea I see what you mean. It doesn't work for me either, even using daisyUI tooltips, tips don't work for pie charts.

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

No branches or pull requests

2 participants