|
@@ -300,6 +300,9 @@ const leftContent:Ref<any> = ref({
|
|
|
grid: {
|
|
grid: {
|
|
|
containLabel: true
|
|
containLabel: true
|
|
|
},
|
|
},
|
|
|
|
|
+ tooltip: {
|
|
|
|
|
+ formatter: '{b}: {c}辆 ,占比: {d}%'
|
|
|
|
|
+ },
|
|
|
// 图表图例
|
|
// 图表图例
|
|
|
legend: {
|
|
legend: {
|
|
|
type: 'scroll',
|
|
type: 'scroll',
|
|
@@ -312,7 +315,7 @@ const leftContent:Ref<any> = ref({
|
|
|
bottom: 0, // 图例垂直居中
|
|
bottom: 0, // 图例垂直居中
|
|
|
textStyle: {
|
|
textStyle: {
|
|
|
color: 'white', // 图例文字颜色
|
|
color: 'white', // 图例文字颜色
|
|
|
- fontSize: 20
|
|
|
|
|
|
|
+ fontSize: 18
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
series: [
|
|
series: [
|
|
@@ -322,8 +325,9 @@ const leftContent:Ref<any> = ref({
|
|
|
avoidLabelOverlap: true, // 是否启用防止标签重叠策略
|
|
avoidLabelOverlap: true, // 是否启用防止标签重叠策略
|
|
|
showEmptyCircle: true, // 是否在无数据的时候显示一个占位圆
|
|
showEmptyCircle: true, // 是否在无数据的时候显示一个占位圆
|
|
|
label: {
|
|
label: {
|
|
|
- formatter: '{b}\n{d}%',
|
|
|
|
|
- color: 'white'
|
|
|
|
|
|
|
+ formatter: '{b} {d}%',
|
|
|
|
|
+ color: 'white',
|
|
|
|
|
+ fontSize: 18
|
|
|
},
|
|
},
|
|
|
data: [
|
|
data: [
|
|
|
{ name: '运营中', value: 30619 },
|
|
{ name: '运营中', value: 30619 },
|
|
@@ -351,6 +355,9 @@ const leftContent:Ref<any> = ref({
|
|
|
grid: {
|
|
grid: {
|
|
|
containLabel: true
|
|
containLabel: true
|
|
|
},
|
|
},
|
|
|
|
|
+ tooltip: {
|
|
|
|
|
+ formatter: '{b}: {c}辆 ,占比: {d}%'
|
|
|
|
|
+ },
|
|
|
// 图表图例
|
|
// 图表图例
|
|
|
legend: {
|
|
legend: {
|
|
|
type: 'scroll',
|
|
type: 'scroll',
|
|
@@ -363,7 +370,7 @@ const leftContent:Ref<any> = ref({
|
|
|
bottom: 0, // 图例垂直居中
|
|
bottom: 0, // 图例垂直居中
|
|
|
textStyle: {
|
|
textStyle: {
|
|
|
color: 'white', // 图例文字颜色
|
|
color: 'white', // 图例文字颜色
|
|
|
- fontSize: 20
|
|
|
|
|
|
|
+ fontSize: 18
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
series: [
|
|
series: [
|
|
@@ -373,8 +380,9 @@ const leftContent:Ref<any> = ref({
|
|
|
avoidLabelOverlap: true, // 是否启用防止标签重叠策略
|
|
avoidLabelOverlap: true, // 是否启用防止标签重叠策略
|
|
|
showEmptyCircle: true, // 是否在无数据的时候显示一个占位圆
|
|
showEmptyCircle: true, // 是否在无数据的时候显示一个占位圆
|
|
|
label: {
|
|
label: {
|
|
|
- formatter: '{b}\n{d}%',
|
|
|
|
|
- color: 'white'
|
|
|
|
|
|
|
+ formatter: '{b} {d}%',
|
|
|
|
|
+ color: 'white',
|
|
|
|
|
+ fontSize: 18
|
|
|
},
|
|
},
|
|
|
data: [
|
|
data: [
|
|
|
{ name: '隔日留交车辆', value: 30619 },
|
|
{ name: '隔日留交车辆', value: 30619 },
|
|
@@ -446,7 +454,9 @@ const rightContent = ref({
|
|
|
fontSize: 18
|
|
fontSize: 18
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- // color: [ '#6386e0', '#fb9a55', '#6bd98d', '#8dfd15', '#6bd98d', '#fff' ],
|
|
|
|
|
|
|
+ tooltip: {
|
|
|
|
|
+ formatter: '{b}: {c}个 , {d}%'
|
|
|
|
|
+ },
|
|
|
series: {
|
|
series: {
|
|
|
bottom: 50,
|
|
bottom: 50,
|
|
|
type: 'pie', // 图表类型为饼图
|
|
type: 'pie', // 图表类型为饼图
|
|
@@ -485,7 +495,9 @@ const rightContent = ref({
|
|
|
fontSize: 18
|
|
fontSize: 18
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- // color: [ '#6386e0', '#fb9a55', '#6bd98d', '#8dfd15', '#6bd98d', '#fff' ],
|
|
|
|
|
|
|
+ tooltip: {
|
|
|
|
|
+ formatter: '{b}: {c}个 , {d}%'
|
|
|
|
|
+ },
|
|
|
series: {
|
|
series: {
|
|
|
bottom: 50,
|
|
bottom: 50,
|
|
|
type: 'pie', // 图表类型为饼图
|
|
type: 'pie', // 图表类型为饼图
|
|
@@ -525,7 +537,9 @@ const rightContent = ref({
|
|
|
fontSize: 18
|
|
fontSize: 18
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- // color: [ '#6386e0', '#fb9a55', '#6bd98d', '#8dfd15', '#6bd98d', '#fff' ],
|
|
|
|
|
|
|
+ tooltip: {
|
|
|
|
|
+ formatter: '{b}: {c}个 , {d}%'
|
|
|
|
|
+ },
|
|
|
series: {
|
|
series: {
|
|
|
bottom: 50,
|
|
bottom: 50,
|
|
|
type: 'pie', // 图表类型为饼图
|
|
type: 'pie', // 图表类型为饼图
|
|
@@ -566,6 +580,9 @@ const rightContent = ref({
|
|
|
fontWeight: 'normal'
|
|
fontWeight: 'normal'
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ tooltip: {
|
|
|
|
|
+ formatter: '{b}: {c}辆 ,占比: {d}%'
|
|
|
|
|
+ },
|
|
|
grid: {
|
|
grid: {
|
|
|
containLabel: true,
|
|
containLabel: true,
|
|
|
top: 0,
|
|
top: 0,
|
|
@@ -594,7 +611,7 @@ const rightContent = ref({
|
|
|
showEmptyCircle: true, // 是否在无数据的时候显示一个占位圆
|
|
showEmptyCircle: true, // 是否在无数据的时候显示一个占位圆
|
|
|
label: {
|
|
label: {
|
|
|
show: true,
|
|
show: true,
|
|
|
- formatter: '{b}: {d}俩',
|
|
|
|
|
|
|
+ formatter: '{b}: {d}辆',
|
|
|
color: 'white',
|
|
color: 'white',
|
|
|
fontSize: 18
|
|
fontSize: 18
|
|
|
},
|
|
},
|