option = {
backgroundColor:'white',
title : {
text: ''
},
grid: {
left: '3%',
right: '12%',
bottom: '3%',
containLabel: true
},
tooltip : {
trigger: 'axis',
showDelay : 0,
formatter : function (params) {
if (params.value.length > 1) {
return params.seriesName + ' :<br/>'
+ params.value[0] + ','
+ params.value[1];
}
else {
return params.seriesName + ' :<br/>'
+ params.name + ' : '
+ params.value + ' ';
}
},
axisPointer:{
show: true,
type : 'cross',
lineStyle: {
type : 'dashed',
width : 1
}
}
},
toolbox: {
feature: {
dataZoom: {},
brush: {
type: ['rect', 'polygon', 'clear']
}
}
},
brush: {
},
xAxis : [
{
type : 'value',
name: 'xx评分',
scale: true,
axisLabel : {
formatter: '{value}'
},
splitLine: {
show: false
}
}
],
yAxis : [
{
type : 'value',
name: 'yyy评分',
scale:true,
axisLabel : {
formatter: '{value}'
},
splitLine: {
show: false
}
}
],
series : [
{
name:'',
type:'scatter',
data: [[1.1,1.1],[1.5,2.6],[1.7,6],[2,8],[2.1,10.1],[2.2,12.3],[2.3,19.2],[3.1,22.3],[3.5,25.8],[3.8,29.6],[4.2,33.8],[4.3,38.1],[4.7,42.8],[5,47.8],[5.1,52.9],[9.5,62.4],[9.7,72.1],[10,82.1],[12,94.1]
],
markArea: {
silent: true,
itemStyle: {
normal: {
color: 'transparent',
borderWidth: 0.5,
borderType: 'dashed',
borderColor: 'grey'
}
},
data: [[{
name: '',
xAxis: 'min',
yAxis: 'min'
}, {
xAxis: 'max',
yAxis: 'max'
}]]
},
markLine : {
lineStyle: {
normal: {
color: 'blue',
type: 'solid'
}
},
data : [
{type : 'median', name: '中位数'},
{type : 'median', valueDim:'x' }
]
}
}
]
};
去除数字