散点图测试

This commit is contained in:
lzc 2025-03-11 16:56:54 +08:00
parent 197ea5d1a4
commit d708f0454d

View File

@ -20,7 +20,7 @@ const initChart = () => {
// //
const option = { const option = {
title: { title: {
text: '耿马县地图散点图', text: '',
left: 'center', left: 'center',
}, },
tooltip: { tooltip: {
@ -33,14 +33,14 @@ const initChart = () => {
}, },
}, },
toolbox: { toolbox: {
show: true, show: false,
orient: 'vertical', orient: 'vertical',
left: 'right', left: 'right',
top: 'center', top: 'center',
feature: { feature: {
dataView: { readOnly: false }, // dataView: { readOnly: false },
restore: {}, // restore: {},
saveAsImage: {}, // saveAsImage: {},
}, },
}, },
geo: { geo: {
@ -72,10 +72,10 @@ const initChart = () => {
borderWidth: 1, // borderWidth: 1, //
areaColor: 'transparent', // areaColor: 'transparent', //
}, },
emphasis: { // emphasis: {
borderColor: '#fff', // borderColor: '#fff',
borderWidth: 2, // borderWidth: 2,
}, // },
}, },
}, },
// //
@ -113,7 +113,7 @@ const initChart = () => {
scale: 3, // scale: 3, //
brushType: 'stroke', // 'stroke' 'fill' brushType: 'stroke', // 'stroke' 'fill'
}, },
hoverAnimation: true, hoverAnimation: false,
}, },
], ],
}; };