You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "vince-a-m (via GitHub)" <gi...@apache.org> on 2025/11/07 18:27:50 UTC

[I] Format issue for tooltip on pie chart [superset]

vince-a-m opened a new issue, #36043:
URL: https://github.com/apache/superset/issues/36043

   ### Bug description
   
   The tooltip on hover for the pie chart shows the total and number as one long string (e.g in Screenshot)
   It should display the same as the it does for the label (e.g Direct Patient Care 1582 (47.96%))
   
   ### Screenshots/recordings
   
   <img width="440" height="269" alt="Image" src="https://github.com/user-attachments/assets/64d0810f-f129-49d7-89c0-f3ecae8594fc" />
   
   ### Superset version
   
   5.0.0
   
   ### Python version
   
   3.11
   
   ### Node version
   
   18 or greater
   
   ### Browser
   
   Not applicable
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Format issue for tooltip on pie chart [superset]

Posted by "devjs2705 (via GitHub)" <gi...@apache.org>.
devjs2705 commented on issue #36043:
URL: https://github.com/apache/superset/issues/36043#issuecomment-3512621824

   Hi @vince-a-m,
   I would like to work on this issue, could you please assign me?
   
   regards.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Format issue for tooltip on pie chart [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #36043:
URL: https://github.com/apache/superset/issues/36043#issuecomment-3504143009

   <!-- Greeting -->
   Hi @vince-a-m! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
   
   <!-- Answer -->
   The tooltip formatting for pie charts in Superset is handled by a formatter function in the ECharts pie chart plugin. This function is supposed to format the tooltip as separate values (e.g., "Direct Patient Care 1582 (47.96%)"), but if you're seeing a concatenated string, it likely means there's a bug or misconfiguration in the tooltip formatter logic or its utility functions. The relevant code is in the `transformProps` function, specifically in the `tooltip.formatter` property, which uses a `parseParams` function to extract and format the name, value, and percent, and then generates the tooltip HTML using `tooltipHtml` [see source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/Pie/transformProps.ts#L59-L434).
   
   If the tooltip is not matching the label format, check for any local overrides or recent changes to this formatter logic. Ensuring that the formatter returns a string like `${name} ${formattedValue} (${formattedPercent})` should resolve the issue. If you are customizing the chart, you may want to review or adjust the tooltip formatter in your deployment.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/de212204-829f-4c32-a7cc-bfd74e0bc3d5?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/de212204-829f-4c32-a7cc-bfd74e0bc3d5?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/de212204-829f-4c32-a7cc-bfd74e0bc3d5?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/de212204-829f-4c32-a7cc-bfd74e0bc3d5?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/de212204-829f-4c32-a7cc-bfd74e0bc3d5?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/de212204-829f-4c32-a7cc-bfd74e0bc3d5?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/de212204-829f-4c32-a7cc-bfd74e0bc3d5?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
 b)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/36043)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Format issue for tooltip on pie chart [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #36043:
URL: https://github.com/apache/superset/issues/36043#issuecomment-3523233535

   Closing this since it has already been fixed. We close issues when they get fixed, not when shipped. You can cherry pick that fix into your release, await the next official release that has it, or use a commercial offering (like Preset) that regularly pulls this sort of thing in. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Format issue for tooltip on pie chart [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #36043: Format issue for tooltip on pie chart
URL: https://github.com/apache/superset/issues/36043


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Format issue for tooltip on pie chart [superset]

Posted by "vince-a-m (via GitHub)" <gi...@apache.org>.
vince-a-m commented on issue #36043:
URL: https://github.com/apache/superset/issues/36043#issuecomment-3512641001

   > Hi [@vince-a-m](https://github.com/vince-a-m), I would like to work on this issue, could you please assign me?
   > 
   > regards.
   
   Hello @devjs2705, I am not sure how to assign you


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Format issue for tooltip on pie chart [superset]

Posted by "SBIN2010 (via GitHub)" <gi...@apache.org>.
SBIN2010 commented on issue #36043:
URL: https://github.com/apache/superset/issues/36043#issuecomment-3513532190

   Hi @vince-a-m!
   This bug has already been fixed in pr #34018


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org