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

[GitHub] [echarts] ankit-ghl commented on issue #12080: Donut chart with centered dynamic text

ankit-ghl commented on issue #12080:
URL: https://github.com/apache/echarts/issues/12080#issuecomment-1549858776

   > @akvaliya I believe Ovilia has given quite straightforward answer.
   > 
   > ```
   > title: {
   >         text: `${data[0].name} count: ${data[0].value}`,
   >         left: 'center',
   >         top: 'center',
   >         textStyle: {
   >             color: '#ccc'
   >         }
   >     },
   > ```
   > 
   > try demo : https://gallery.echartsjs.com/editor.html?c=xY55c6SEV&v=5
   
   This solution does not work the centre of the doughnut chart is shifted to a different position. How do we make sure, it is always in the centre of the doughnut chart?


-- 
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