fawadinam commented on issue #33913:
URL: https://github.com/apache/superset/issues/33913#issuecomment-3075334634

   > I am facing a similar issue, it does seem to work fine on Sunburst chart 
but not in the Pie chart. I want to customise the value its showing on the 
tooltip instead of the default value, also the value and percentages are 
concatenated. I also tried making following change tooltip: { show: false, in 
"const echartOptions: EChartsCoreOption = {" within file transformProps.ts but 
it didn't seem to work at all. If i am not able to fix it, then it should be 
hidden atleast. <img alt="Image" width="1195" height="564" 
src="https://private-user-images.githubusercontent.com/134792908/466431055-623e51cf-498e-4541-8b6d-c5fc1df6d382.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTI2MDg5MzMsIm5iZiI6MTc1MjYwODYzMywicGF0aCI6Ii8xMzQ3OTI5MDgvNDY2NDMxMDU1LTYyM2U1MWNmLTQ5OGUtNDU0MS04YjZkLWM1ZmMxZGY2ZDM4Mi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQS
 
UyRjIwMjUwNzE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDcxNVQxOTQzNTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02MmY4NWFiYWNjNWRlOTc1YWQ4NzI1YzNjMGZlZGNmOGMzN2FkYjlmYmVmOThjZDMwMWNkNTc2M2ZjYTg4ZjZlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.de4Fq8L53GfcDMJcYUcasQuM3LuBhCfM0EDmpibIhQw">
   
   So what I have done is change the return method for Tooltip in 
TransformProps.ts. so instead of using tooltipHtml i'm returning the actual 
arguments here. Following is how it looks now. 
   
   current code:
         formatter: (params: any) => {
           const [name, formattedValue, formattedPercent] = parseParams({
             params,
             numberFormatter,
             sanitizeName: true,
           });
           return tooltipHtml(
             [[metricLabel, formattedValue, formattedPercent]],
             name,
           );
   
   changed code:
   
         formatter: (params: any) => {
           const [name, formattedValue, formattedPercent] = parseParams({
             params,
             numberFormatter,
             sanitizeName: true,
           });
           return `${name} ${formattedValue}, ${formattedPercent}`;
   
   <img width="836" height="420" alt="Image" 
src="https://github.com/user-attachments/assets/9a4bf7e5-dc71-447e-81dc-70f62392d06c";
 />


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to