This commit is contained in:
parent
8821903bea
commit
11a48c1ad3
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue