|
|
@ -875,12 +875,12 @@ const updatePieChart = (chartRef, chartInstance, data) => { |
|
|
const option = { |
|
|
const option = { |
|
|
color: regionColors, |
|
|
color: regionColors, |
|
|
tooltip: { trigger: 'item' }, |
|
|
tooltip: { trigger: 'item' }, |
|
|
legend: { orient: 'vertical', right: '0%', top: 'center', itemWidth: 10, itemHeight: 10, textStyle: { fontSize: 10 } }, |
|
|
|
|
|
|
|
|
legend: { orient: 'vertical', right: '15%', top: 'center', itemWidth: 10, itemHeight: 10, textStyle: { fontSize: 10 } }, |
|
|
series: [ |
|
|
series: [ |
|
|
{ |
|
|
{ |
|
|
type: 'pie', |
|
|
type: 'pie', |
|
|
radius: '70%', |
|
|
radius: '70%', |
|
|
center: ['30%', '50%'], |
|
|
|
|
|
|
|
|
center: ['50%', '50%'], // 改为居中显示 |
|
|
data: data, |
|
|
data: data, |
|
|
label: { show: false }, |
|
|
label: { show: false }, |
|
|
itemStyle: { |
|
|
itemStyle: { |
|
|
@ -1011,12 +1011,12 @@ const initCharts = () => { |
|
|
chart.setOption({ |
|
|
chart.setOption({ |
|
|
color: regionColors, |
|
|
color: regionColors, |
|
|
tooltip: { trigger: 'item' }, |
|
|
tooltip: { trigger: 'item' }, |
|
|
legend: { orient: 'vertical', right: '10%', top: 'center' }, |
|
|
|
|
|
|
|
|
legend: { orient: 'vertical', right: '15%', top: 'center', itemWidth: 10, itemHeight: 10, textStyle: { fontSize: 10 } }, |
|
|
series: [ |
|
|
series: [ |
|
|
{ |
|
|
{ |
|
|
type: 'pie', |
|
|
type: 'pie', |
|
|
radius: '80%', |
|
|
|
|
|
center: ['40%', '50%'], |
|
|
|
|
|
|
|
|
radius: '70%', |
|
|
|
|
|
center: ['50%', '50%'], |
|
|
data: [ |
|
|
data: [ |
|
|
{ value: 1048, name: '香港地区' }, |
|
|
{ value: 1048, name: '香港地区' }, |
|
|
{ value: 735, name: '新加坡地区' }, |
|
|
{ value: 735, name: '新加坡地区' }, |
|
|
@ -1042,14 +1042,14 @@ const initCharts = () => { |
|
|
chart.setOption({ |
|
|
chart.setOption({ |
|
|
color: regionColors, |
|
|
color: regionColors, |
|
|
tooltip: { trigger: 'item' }, |
|
|
tooltip: { trigger: 'item' }, |
|
|
legend: { orient: 'vertical', right: '0%', top: 'center', itemWidth: 10, itemHeight: 10, textStyle: { fontSize: 10 } }, |
|
|
|
|
|
|
|
|
legend: { orient: 'vertical', right: '15%', top: 'center', itemWidth: 10, itemHeight: 10, textStyle: { fontSize: 10 } }, |
|
|
series: [ |
|
|
series: [ |
|
|
{ |
|
|
{ |
|
|
type: 'pie', |
|
|
type: 'pie', |
|
|
radius: '70%', |
|
|
radius: '70%', |
|
|
center: ['30%', '50%'], |
|
|
|
|
|
|
|
|
center: ['50%', '50%'], |
|
|
data: [ |
|
|
data: [ |
|
|
{ value: 1048, name: '香港地区' }, |
|
|
|
|
|
|
|
|
{ value: 1048, name: '香港地区' }, |
|
|
{ value: 735, name: '新加坡地区' }, |
|
|
{ value: 735, name: '新加坡地区' }, |
|
|
{ value: 580, name: '泰国地区' }, |
|
|
{ value: 580, name: '泰国地区' }, |
|
|
{ value: 484, name: '越南地区' }, |
|
|
{ value: 484, name: '越南地区' }, |
|
|
@ -1068,12 +1068,12 @@ const initCharts = () => { |
|
|
chart.setOption({ |
|
|
chart.setOption({ |
|
|
color: regionColors, |
|
|
color: regionColors, |
|
|
tooltip: { trigger: 'item' }, |
|
|
tooltip: { trigger: 'item' }, |
|
|
legend: { orient: 'vertical', right: '0%', top: 'center', itemWidth: 10, itemHeight: 10, textStyle: { fontSize: 10 } }, |
|
|
|
|
|
|
|
|
legend: { orient: 'vertical', right: '15%', top: 'center', itemWidth: 10, itemHeight: 10, textStyle: { fontSize: 10 } }, |
|
|
series: [ |
|
|
series: [ |
|
|
{ |
|
|
{ |
|
|
type: 'pie', |
|
|
type: 'pie', |
|
|
radius: '70%', |
|
|
radius: '70%', |
|
|
center: ['30%', '50%'], |
|
|
|
|
|
|
|
|
center: ['50%', '50%'], |
|
|
data: [ |
|
|
data: [ |
|
|
{ value: 1048, name: '香港地区' }, |
|
|
{ value: 1048, name: '香港地区' }, |
|
|
{ value: 735, name: '新加坡地区' }, |
|
|
{ value: 735, name: '新加坡地区' }, |
|
|
@ -1142,6 +1142,10 @@ onMounted(() => { |
|
|
gap: 10px; |
|
|
gap: 10px; |
|
|
margin-bottom: 20px; |
|
|
margin-bottom: 20px; |
|
|
border: 1px solid #f0f0f0; |
|
|
border: 1px solid #f0f0f0; |
|
|
|
|
|
position: sticky; |
|
|
|
|
|
top: 0; |
|
|
|
|
|
z-index: 1000; |
|
|
|
|
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); |
|
|
} |
|
|
} |
|
|
.search-label { |
|
|
.search-label { |
|
|
font-weight: bold; |
|
|
font-weight: bold; |
|
|
|