Authored by 郭成尧

data

export default {
title: {
text: '未来一周气温变化',
subtext: '纯属虚构'
},
tooltip: {
trigger: 'axis'
},
legend: {
data:['最高气温','最低气温']
},
toolbox: {
show: true,
feature: {
dataZoom: {
yAxisIndex: 'none'
},
dataView: {readOnly: false},
magicType: {type: ['line', 'bar']},
restore: {},
saveAsImage: {}
}
},
xAxis: {
type: 'category',
boundaryGap: false,
data: ['周一','周二','周三','周四','周五','周六','周日']
data: ['9:09:40PM','9:09:50PM','9:09:40PM','9:10:00PM','9:10:10PM','9:10:20PM','9:10:30PM']
},
yAxis: {
type: 'value',
axisLabel: {
formatter: '{value} °C'
formatter: '{value}'
}
},
series: [
{
name:'最高气温',
name:'Max',
type:'line',
data:[11, 11, 15, 13, 12, 13, 10],
data:[951000, 951000, 951000, 951000, 951000, 951000, 951000],
markPoint: {
data: [
{type: 'max', name: '最大值'},
... ... @@ -50,9 +28,9 @@ export default {
}
},
{
name:'最低气温',
name:'Current',
type:'line',
data:[1, -2, 2, 5, 3, 2, 0],
data:[948000, 949000, 958000, 848000, 748000, 648000, 948000],
markPoint: {
data: [
{name: '周最低', value: -2, xAxis: 1, yAxis: -1.5}
... ...