This commit is contained in:
zk
2023-12-21 16:42:22 +08:00
parent 5a33aa1df4
commit dd5a47e7fb
4 changed files with 13 additions and 7 deletions
+8 -5
View File
@@ -14,7 +14,7 @@ export function screenPie(chartData, total, color) {
borderColor: '#1b7ef2',
},
legend: {
left: '72%',
right: '5%',
top: 'center',
orient: 'vertical',
icon: 'circle',
@@ -23,12 +23,13 @@ export function screenPie(chartData, total, color) {
color: '#ffffff',
fontSize: 16,
},
selectedMode: false
},
series: [
{
type: 'pie',
radius: ['50%', '76%'],
center: ['40%', '49%'],
radius: ['50%', '72%'],
center: ['37%', '49%'],
avoidLabelOverlap: false,
label: {
show: true,
@@ -50,7 +51,8 @@ export function screenPie(chartData, total, color) {
//左侧圆
export function circleRing(chartData, total, color) {
const data = visibleChartLabel(chartData)
// const data = visibleChartLabel(chartData)
// const data = chartData
return {
color: color,
tooltip: {
@@ -72,6 +74,7 @@ export function circleRing(chartData, total, color) {
color: '#ffffff',
fontSize: 16,
},
selectedMode: false
},
series: [
{
@@ -89,7 +92,7 @@ export function circleRing(chartData, total, color) {
labelLine: {
show: false,
},
data: data,
data: chartData,
},
],
};