Advertisement

基于ECharts的标准柱状图与基线结合

阅读量:

实验所得数据图表:

详尽的代码实现:

复制代码
 const colors = ['#7CB5EC', '#90ED7D', '#F7A35C'];

    
 option = 
    
 {
    
   color: colors,
    
   tooltip: {
    
     trigger: 'axis',
    
     axisPointer: {
    
       type: 'cross'
    
     }
    
   },
    
   grid: {
    
     right:'5%'
    
   },
    
   legend: {
    
     data: ['1#8T球磨机', '2#8T球磨机', '3#8T球磨机','目标单耗','行业单耗']
    
   },
    
   xAxis: [
    
     {
    
       type: 'category',
    
       axisTick: {
    
     alignWithLabel: true

全部评论 (0)

还没有任何评论哟~