import { formatNums } from '@/utils/tools'
export const optionDefault = {
tooltip: {
trigger: 'item',
padding: 5,
formatter: p => {
if (!p.data.name || p.data.none) return ''
return `<div class="tooltip">${p.data.name}<br>T量:${p.data.amount_t}<br>订单量:${p.data.amount_order}<br>毛利人民币:${formatNums(
p.data.cny_profit,
)}<br>毛利美元:${formatNums(p.data.usd_profit)}</div>`
},
},
geo: {
map: 'china',
zoom: 1.2,
roam: true,
itemStyle: {
normal: {
borderWidth: 1,
borderColor: '#0e94eb',
label: {
show: false,
},
areaColor: {
type: 'radial',
x: 0.5,
y: 0.5,
r: 0.5,
colorStops: [
{
offset: 0,
color: '#003ddf',
},
{
offset: 1,
color: '#0069e6',
},
],
global: false,
},
},
},
},
series: [
{
type: 'lines',
zlevel: 1,
effect: { show: true, period: 6, trailLength: 0.7, color: '#f5b805', symbolSize: 3, symbol: 'circle' },
data: [],
},
{
type: 'lines',
zlevel: 2,
effect: {
show: true,
period: 6,
trailLength: 0,
symbol:
'path://M.6,1318.313v-89.254l-319.9-221.799l0.073-208.063c0.521-84.662-26.629-121.796-63.961-121.491c-37.332-0.305-64.482,36.829-63.961,121.491l0.073,208.063l-319.9,221.799v89.254l330.343-157.288l12.238,241.308l-134.449,92.931l0.531,42.034l175.125-42.917l175.125,42.917l0.531-42.034l-134.449-92.931l12.238-241.308L1705',
symbolSize: 15,
},
data: [],
},
{
type: 'effectScatter',
coordinateSystem: 'geo',
zlevel: 2,
rippleEffect: { brushType: 'stroke' },
label: { normal: { show: false, position: 'right', formatter: '{b}' } },
itemStyle: { normal: { color: '#fff' } },
data: [],
symbolSize: null,
},
],
}
地图流动线条
最新推荐文章于 2023-02-14 17:31:17 发布