option = {
title: [
{
text: 'Michelson-Morley Experiment',
left: 'center'
}
],
xAxis: {
type: 'category',
data: ['0', '1', '2', '3', '4'],
boundaryGap: true,
nameGap: 30,
splitArea: {
show: false
},
axisLabel: {
formatter: 'expr {value}'
},
splitLine: {
show: false
}
},
yAxis: {
type: 'value',
name: 'km/s minus 299,000',
splitArea: {
show: true
}
},
series: [
{
name: 'boxplot',
type: 'boxplot',
data: [
[],
[15,35, 55, 85, 90],
[10, 30, 50, 80, 100],
{
value: [55, 85, 94, 98, 107],
itemStyle: {
color: null,
borderColor: 'rgba(42, 227, 51, 1)'
}
},
[],
[],[],
]
},
{
name: '散点图4',
type: 'scatter',
color: '#666',
data: [
[0, 80],
[0, 86],
[1, 61.2],
[3, 10],
[4, 30],
[4, 50],
[5, 55]
]
},
{
name: '折线图',
type: 'line',
data: [13, 26, 30, 46, 50, 60, 56]
},
{
name: '散点图',
type: 'scatter',
color: '#f00',
data: [
[0, 10],
[1, 20],
[2, 31],
[3, 86],
[4, 50],
[5, 60],
[6, 70]
]
}
]
};