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 2019/04/10 06:23:38 UTC

[GitHub] [incubator-echarts] yufeng04 commented on issue #8885: 折线图label因为showSymbol属性设置为false显示不出来bug

yufeng04 commented on issue #8885: 折线图label因为showSymbol属性设置为false显示不出来bug
URL: https://github.com/apache/incubator-echarts/issues/8885#issuecomment-481550490
 
 
   The  case when "showSymbol = false" and "label.show=true" is not handled. So I think we can add a judgment to deal with this case. The way consists of the following steps:
   1. In the function `render` of line
   <img width="472" alt="9ab9209d3e0959f2bde8e696c" src="https://user-images.githubusercontent.com/22974511/55855455-2972ee80-5b9a-11e9-9d06-7ecb08bf4f48.png">
   
   2. In the function `symbolProto.updateData`
   <img width="522" alt="3ee35cffc4d0c30849f5d811a" src="https://user-images.githubusercontent.com/22974511/55855675-c3d33200-5b9a-11e9-91fa-6d5c9e56f735.png">
   
   We can draw the line chart like this.
   ![a03102b97758d534de9ea447d](https://user-images.githubusercontent.com/22974511/55856074-c8e4b100-5b9b-11e9-8570-d81fd3b8a220.png)
   
   Hope it helps.

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