echarts4.0_dataset问题

描述:当前是关于Echarts图表中的 折线图 示例。
 
            option = {
    legend: {
        data: ['邮件营销', '联盟广告']
    },
    xAxis: {
        type: 'category',
        data: ['周一', '周二', '周三']
    },
    yAxis: {
        type: 'value'
    },
    series: [{
            name: '邮件营销',
            type: 'line',
            data: [120, 132, 101]
        },
        {
            name: '联盟广告',
            type: 'line',
            data: [220, 182, 191]
        }
    ]
};

/*option = {
    dataset: {
        source: [{
        	"date": "2017-12-19",
        	"sales": 80858,
        	"category": "电水壶"
        }, {
        	"sales": 16811,
        	"category": "料理机",
        	"date": "2017-12-19"
        }, {
        	"category": "料理机",
        	"sales": 25329,
        	"date": "2017-12-20"
        }, {
        	"sales": 83118,
        	"category": "电水壶",
        	"date": "2017-12-20"
        }, {
        	"date": "2017-12-21",
        	"sales": 97863,
        	"category": "电水壶"
        }, {
        	"sales": 27627,
        	"category": "料理机",
        	"date": "2017-12-21"
        }]
    },
    legend: {
        data:['电水壶','料理机']
    },
    xAxis: {type:'category'},
    yAxis: [
        {type: 'value'}
    ],
    series: [{
        type: 'line'
    },{
        type: 'line'
    }]
};*/