echart's line chart label does not display the solution

Description of the problem phenomenon: The show value of the label is set to true in the line chart, but the label is still not displayed, as shown in the following figure:

Troubleshooting steps:

1. Check whether the symbol is set to

symbol:'none',

Or whether

"symbolSize": 0,

solution:

If the situation described in the above troubleshooting steps occurs, comment out the symbol:'none' correspondingly, and the line may be changed to

symbol:'circle',
"symbolSize": 0.01,

The effect after the change is as follows:

Guess you like

Origin blog.csdn.net/taozi550185271/article/details/109188612