This commit is contained in:
duanxiaohai 2024-06-05 15:15:17 +08:00
parent 8821903bea
commit 11a48c1ad3
1 changed files with 4 additions and 4 deletions

View File

@ -113,7 +113,7 @@ const getOption = () => {
name: "县镇",
barGap: "-50%",
type: "bar",
data: data.list[1],
data: data.list[0],
barWidth: "40%", //
barGap: 0.3 /*多个并排柱子设置柱子之间的间距*/,
label: {
@ -144,7 +144,7 @@ const getOption = () => {
name: "农村",
type: "bar",
barGap: "-50%",
data: data.list[0],
data: data.list[1],
barWidth: "40%", //
barGap: 0.3 /*多个并排柱子设置柱子之间的间距*/,
label: {
@ -161,8 +161,8 @@ const getOption = () => {
var colorList = [
new echarts.graphic.LinearGradient(0, 0, 1, 0, [
{ offset: 0, color: "rgba(0, 255, 208,0)" },
{ offset: 0.5, color: "rgba(0, 255, 208,0.5)" },
{ offset: 1, color: "rgba(0, 255, 208,1)" },
{ offset: 0.5, color: "rgba(23, 255, 202, 0.20)" },
{ offset: 1, color: "rgba(23, 255, 206, 1)" },
]),
];
return colorList[params.dataIndex % colorList.length];