提交代码

This commit is contained in:
遥望-倪浩天 2024-09-24 10:12:49 +08:00
parent a873a14024
commit 29a64717d1
1 changed files with 28 additions and 24 deletions

View File

@ -237,25 +237,29 @@ const initLineVandDChart = (data, xData) => {
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
}, },
legend: { grid:{
type: 'scroll', right: '20%', //
orient: 'vartical', left: '5%',
// x: "right", top: '10%',
top: 'center', bottom: '10%'
right: '15', },
// bottom: "0%", legend: {
itemWidth: 16, type: 'scroll',
itemHeight: 8, orient: 'vertical', // vertical
itemGap: 10, top: 'center',
textStyle: { right: '15%', //
color: '#000000', itemWidth: 16,
fontSize: 100, itemHeight: 8,
fontWeight: 0, itemGap: 10,
}, textStyle: {
data: xData, color: '#000000',
}, fontSize: 12, // 100
fontWeight: 'normal' // 使 'normal' 'bold'
},
data: xData,
},
polar: { polar: {
center: ['30%', '56%'], center: ['40%', '56%'],
}, },
angleAxis: { angleAxis: {
interval: 1, interval: 1,
@ -309,7 +313,7 @@ const initLineVandDChart = (data, xData) => {
series: [ series: [
{ {
type: 'pie', type: 'pie',
center: ['30%', '56%'], center: ['40%', '56%'],
radius: ['5%', '10%'], radius: ['5%', '10%'],
hoverAnimation: false, hoverAnimation: false,
labelLine: { labelLine: {
@ -336,7 +340,7 @@ const initLineVandDChart = (data, xData) => {
}, },
{ {
type: 'pie', type: 'pie',
center: ['30%', '56%'], center: ['40%', '56%'],
radius: ['80%', '85%'], radius: ['80%', '85%'],
hoverAnimation: false, hoverAnimation: false,
labelLine: { labelLine: {
@ -366,7 +370,7 @@ const initLineVandDChart = (data, xData) => {
{ {
stack: 'a', stack: 'a',
type: 'pie', type: 'pie',
center: ['30%', '56%'], center: ['40%', '56%'],
radius: ['20%', '80%'], radius: ['20%', '80%'],
roseType: 'area', roseType: 'area',
zlevel: 10, zlevel: 10,
@ -515,14 +519,14 @@ const initPieChart2 = (seriesData) => {
grid: { grid: {
top: '15%', top: '15%',
left: 0, left: 0,
right: '1%', right: '15%',
bottom: 5, bottom: 5,
containLabel: true, containLabel: true,
}, },
legend: { legend: {
orient: 'vertical', orient: 'vertical',
top: 'center', top: 'center',
right: 50, right: "10%",
textStyle: { textStyle: {
align: 'left', align: 'left',
verticalAlign: 'middle', verticalAlign: 'middle',
@ -549,7 +553,7 @@ const initPieChart2 = (seriesData) => {
{ {
name: '需求类型占比', name: '需求类型占比',
type: 'pie', type: 'pie',
center: ['30%', '50%'], center: ['40%', '50%'],
radius: ['40%', '65%'], radius: ['40%', '65%'],
label: { label: {
normal: { normal: {