实现效果
option = {
xAxis: {
min: 0.0,
max: 9.0,
interval: 1,
splitLine: {
show: true,
lineStyle:{
color: ['#DEDEDE','#DEDEDE','DEDEDE','red','#DEDEDE','#DEDEDE','red','#DEDEDE','#DEDEDE','red'],
width: 1,
type: 'solid'
}
}
},
yAxis: {
min: 0.0,
max: 9.0,
interval: 1,
splitLine: {
show: true,
lineStyle:{
color: ['#DEDEDE','#DEDEDE','DEDEDE','red','#DEDEDE','#DEDEDE','red','#DEDEDE','#DEDEDE','red'],
width: 1,
type: 'solid'
}
}
},
aria: {
show: true
},
series: [
{
symbolSize: 35,
data: [
[1.2, 8, '深井冰'],
[4.1, 2.1, '秃头'],
[5, 2, '骗你学'],
[8, 8, '计算机']
],
type: 'scatter',
itemStyle: {
normal: {
color:'#61A8FF',
label: {
color: 'red',
show: true,
fontWeight:600,
position: 'inside',
formatter: function (params, ticket, callback) {
var s = params.value[2];
return s;
}
}
}
}
}
]
};
https://github.com/PointWu/echarts-demohttps://github.com/PointWu/echarts-demo