You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/04/02 18:50:07 UTC

[GitHub] Paul-Kijtapart commented on issue #6238: ������label���������������label������������������labelLine������

Paul-Kijtapart commented on issue #6238: 饼图label超出边界,label被遮挡,但是labelLine还在
URL: https://github.com/apache/incubator-echarts/issues/6238#issuecomment-378008835
 
 
   Hi there,
   
   **Problem**
   I run into similar issue with label overflowing the donut-chart. 
   
   **Problem**
   JsFiddle: http://jsfiddle.net/coolbean/cj31rtpf/418/
   In the jsFiddle, you can see one long name in the data "aaaaaaaaaaaaaaaaaa", which will be used as "label" for the chart.
   Since the name is really long, its length will exceeds the donut (overflowing).
   
   **What I expect**
   if the label is too big for the wrapping circle, its label text should : 
   1. be displayed as "aaa..." where "..." implies overflowing.
   - when user hover over the label, the full text will be displayed.
   OR
   2. be broken into multiple lines based on user specified width and height fields on the label option. When a line exceeds the specified width, the text will start on the new line.
   
   **Possible solution**
   My current workaround are:
   1. Limit the size/content of the label via label.formatter.
   
   **Question**
   I am wondering if there is an Echart option to handle this case. 
    
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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