TESTecharts 折线配置项内容和展示

TEST

配置项如下
      option = {
    xAxis: {
        type: 'category',
   //     data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
    },
   yAxis: {
        //type: 'value'
      //show: false,
      min: function(value) {
     return value.min - 1;
 }
        //  min:2
    //   max:15
   },
 
    series: [{
      
        data: [9.0,9.0,9.0,9.0,9.0,9,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9,9,9,9,9,9,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.0,9.1,9.1,9.1,9.0,9.0,9.1,9.0,9.1,9.1,9.1,9.1,9.1,9.0,9.0,9.0,9.0,9.0,9.0],
        type: 'line',
         smooth: true,
          showSymbol: false,
        name:'CR',
        markLine: {
            lineStyle: {
                normal: {
                    color: 'rgba(0,0,0,1)',
                },
            },
            data: [{
                name:'cpi',
                label: {
                    normal: {
                        formatter: 'cpi 2.03',
                        position: 'middle',
                       // fontSize: 14,
                    }

                },
                yAxis: 2.03,
            },
            {
                name:'gdp',
                label: {
                    normal: {
                        formatter: 'gdp 6.8',
                        position: 'middle',
                       // fontSize: 14,
                    }

                },
                yAxis:  6.8,
            },
             {
                name:'m2',
                label: {
                    normal: {
                        formatter: 'm2 13.07',
                        position: 'middle',
                       // fontSize: 14,
                    }

                },
                yAxis:  13.07,
            }
            ],
            
        },
        
 

    }, 
   // {
  //     data:[2.03],
  //      type:'markLine'
  //  }
  ]
};

    
截图如下