echart细节

显示折线图的每个点的具体数据

需要在series对象里添加:

label: {normal: {

               show: true

           }},

饼图的每个面积背景颜色

option = {  
        title : {  
        text: '颜色范围选择',  
               x:'left',  
               y:'top'  
        },  
        tooltip : {  
               show: true,  
               formatter: "{a} <br/>{b} : {c} ({d}%)"  
        },  
        color:['red', 'green','yellow','blueviolet']  
}  

echart图表的位置

   myChart.setOption({  
                title:{
                    text:"价格指数"
                },
                grid:{
                    x:25,
                    y:45,
                    x2:5,
                    y2:20,
                    borderWidth:1
                },
                ....

猜你喜欢

转载自www.cnblogs.com/cyany/p/9092951.html
今日推荐