Baidu's echarts report data is displayed directly

 Echarts recently developed use of Baidu, in the course of encounter point demand, it is hoped the data displayed directly on the icons, rather than later before sliding the mouse to display, then the next Baidu search related articles just found, then use this method can be used, so there is recorded, after experiencing'll find convenient.

  As shown above, the need to add the following code, a digital black box will appear, the default is the need to slide the mouse over the icon is displayed.

Series: [ 
                { 
                    type: 'bar' , 
                    Data: [$ {Series}], 
                    ItemStyle: { 
                        Normal: { 
                            label: { 
                                Show: to true , // automatically display data, the display data only without the mouse sliding 
                            } 
                        } 
                    } 
            }

 

 

 

Autumn peak, phper, java back-end development, javascript front-end development, the whole stack development, present since the venture, do system development project, as well as a small number do develop public programs and the like, give us today to share here, I want to help. We welcome the exchange of learning from each other and improve together my Micro Signal: qiufeng2999

Guess you like

Origin www.cnblogs.com/xinweiyun/p/11350186.html