You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.4 KiB

//散点图
export default function pointOption(data=[],dName = []) {
return {
legend: {
left: '10%',
top: '3%',
data: dName
},
grid: {
// left: '8%',
// top: '10%'
},
xAxis: {},
yAxis: {},
series: [
{
name: dName[0],
data: data[0],
type: 'scatter',
symbolSize: function (data) {
return data[0];
},
emphasis: {
focus: 'series',
label: {
show: true,
formatter: function ( e ) { return e.data[2] },
position: 'top'
}
},
itemStyle: {
color: '#FF4852'
}
},
{
name: dName[1],
data: data[1],
type: 'scatter',
symbolSize: function (data) {
return data[1];
},
emphasis: {
focus: 'series',
label: {
show: true,
formatter: function (e) { return e.data[2] },
position: 'top'
}
},
itemStyle: {
color: '#FF6E25'
}
}
]
}
}