运行:http://echarts.baidu.com/demo.html
var mydata = [
["11/16", "12/06"],
["33.33", "100"],
["PD201611161124370043", "PD201611161124370044"]
];
option = {
title: {},
tooltip: {
formatter: function(params, ticket, callback) {
return mydata[2][params.dataIndex] + "
" +
params.seriesName + ":" + params.value;
}
},
xAxis: {
data: mydata[0],
name: '日期',
},
yAxis: [{
name: '准确率(%)',
max: 100,
min: 0,
}],
series: [{
name: '准确率',
type: 'line',
itemStyle: {
normal: {
color: '#5B9BD5',
lineStyle: {
type: 'dashed',
color: '#5B9BD5'
}
}
},
data: mydata[1]
}]
};