This commit is contained in:
parent
6c9ac2a30c
commit
ed64ac211e
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue