You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "yuxuejiao (via GitHub)" <gi...@apache.org> on 2023/06/16 05:59:50 UTC

[GitHub] [echarts] yuxuejiao opened a new issue, #18773: [Bug] cannot show percentage in sunburst label

yuxuejiao opened a new issue, #18773:
URL: https://github.com/apache/echarts/issues/18773

   ### Version
   
   5.4.2
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/en/editor.html?c=sunburst-borderRadius
   
   ### Steps to Reproduce
   
   add formatter in sunburst label in the following link:
   option = {
     series: {
       type: 'sunburst',
       data: data,
       radius: [60, '90%'],
       itemStyle: {
         borderRadius: 7,
         borderWidth: 2
       },
       label: {
         show: true,
         formatter: '{b}: {d}%',
       }
     }
   };
   
   ### Current Behavior
   
   cannot show {d}% in chart
   
   ### Expected Behavior
   
   show {d}% in charts correctly
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
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: commits-unsubscribe@echarts.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] vikas-6 commented on issue #18773: [Bug] cannot show percentage in sunburst label

Posted by "vikas-6 (via GitHub)" <gi...@apache.org>.
vikas-6 commented on issue #18773:
URL: https://github.com/apache/echarts/issues/18773#issuecomment-1611000996

   https://codepen.io/VIKAS-KUMAR-the-vuer/pen/NWEpdOY  -----------  I fixed it now it show {d}% in charts correctly....


-- 
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: commits-unsubscribe@echarts.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] susiwen8 commented on issue #18773: [Bug] cannot show percentage in sunburst label

Posted by "susiwen8 (via GitHub)" <gi...@apache.org>.
susiwen8 commented on issue #18773:
URL: https://github.com/apache/echarts/issues/18773#issuecomment-1608591572

   @vikas-6 Feel free to solve this issue, you don't need a permission


-- 
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: commits-unsubscribe@echarts.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] vikas-6 commented on issue #18773: [Bug] cannot show percentage in sunburst label

Posted by "vikas-6 (via GitHub)" <gi...@apache.org>.
vikas-6 commented on issue #18773:
URL: https://github.com/apache/echarts/issues/18773#issuecomment-1607154257

   **hello i want to work on this so please give me permission to fix this problem.....**


-- 
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: commits-unsubscribe@echarts.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] anandbhaskaran commented on issue #18773: [Bug] cannot show percentage in sunburst label

Posted by "anandbhaskaran (via GitHub)" <gi...@apache.org>.
anandbhaskaran commented on issue #18773:
URL: https://github.com/apache/echarts/issues/18773#issuecomment-1614785994

   @vikas-6 
   Thank you for this amazing fix. It does work. But it would be awesome if you can round it to 2 decimals like in the other charts.


-- 
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: commits-unsubscribe@echarts.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org