各品类的评论数走势

描述:当前是关于Echarts图表中的 折线图 示例。
 
            const set1 = [
    ['时间', '品类1', '品类2', '品类3', '品类4'],
    ['2019-10-01', 138, 144, 180, 298],
    ['2019-10-02', 252, 439, 634, 975],
    ['2019-10-03', 201, 325, 360, 398],
    ['2019-10-04', 251, 376, 428, 560],
    ['2019-10-05', 166, 179, 197, 244],
    ['2019-10-06', 271, 306, 321, 340],
    ['2019-10-07', 223, 382, 626, 825],
    ['2019-10-08', 240, 438, 616, 1176],
    ['2019-10-09', 154, 172, 206, 393],
    ['2019-10-10', 171, 258, 304, 373],
    ['2019-10-11', 290, 337, 601, 1052],
    ['2019-10-12', 265, 330, 491, 956]
];

option = {
    // backgroundColor:'#fff',
    dataset:{
        source:set1
    },
    legend:{
        top:4,
        left:16
    },
    grid:{
      left:48,
      top:32,
      right:16,
      bottom:32,
    },
    xAxis: {
       type:'category'
    },
    yAxis: {},
    series: [
        {type:'line',smooth:true},
        {type:'line',smooth:true},
        {type:'line',smooth:true},
        {type:'line',smooth:true},
    ]
};
myChart.resize({width:536, height:320})