momogugu commented on issue #8885: 折线图label因为showSymbol属性设置为false显示不出来bug URL: https://github.com/apache/incubator-echarts/issues/8885#issuecomment-436991660 @shentao1 I checked the code, label is connected with symbol. If `showSymbol = false`, it won't draw label. And if you want to show label without symbol, you need to set `symbol: 'none'` instead of `showSymbol: false`.  However, when I set `symbol: 'none'`, it still doesn't draw label. I checked the code again, and found a function `symbolNeedsDraw`.  so when `symbol: 'none'` , this function will return false, it won't draw symbol, neither label. I think maybe the developer doesn't want to show label without symbol, so I'm not sure whether it is a bug or not. And I tested, if the condition `data.getItemVisual(idx, 'symbol') !== 'none'` is removed, we can draw the line chart like this. 
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
