This commit is contained in:
lnn19986213 2024-06-19 15:31:15 +08:00
parent 6c9ac2a30c
commit ed64ac211e
1 changed files with 13 additions and 6 deletions

View File

@ -175,8 +175,10 @@ const getOption = () => {
legend: [ legend: [
{ {
orient: "vertical", orient: "vertical",
right: "1%", right: "5%",
top: "16%", top: "center",
type: "scroll",
height: "80%",
itemWidth: 20, // itemWidth: 20, //
itemHeight: 10, // itemHeight: 10, //
itemGap: 20, itemGap: 20,
@ -185,6 +187,11 @@ const getOption = () => {
// borderWidth: 10, // // borderWidth: 10, //
// borderRadius: 20, // borderRadius: 20,
// }, // },
pageTextStyle: {
color: "#ffffff",
fontSize: 14,
padding: 10,
},
textStyle: { textStyle: {
color: "#ffffff", color: "#ffffff",
fontSize: 14, fontSize: 14,
@ -226,8 +233,8 @@ const getOption = () => {
{ {
type: "pie", type: "pie",
roseType: "radius", roseType: "radius",
radius: ["15%", "80%"], radius: ["15%", "90%"],
center: ["20%", "50%"], center: ["35%", "50%"],
label: { label: {
position: "inside", position: "inside",
formatter(item) { formatter(item) {
@ -268,8 +275,8 @@ const getOption = () => {
{ {
type: "pie", type: "pie",
roseType: "radius", roseType: "radius",
radius: ["15%", "82%"], radius: ["15%", "92%"],
center: ["20%", "50%"], center: ["35%", "50%"],
label: { label: {
show: false, show: false,
}, },