This commit is contained in:
DESKTOP-FUDKNA8\znjsz
2024-01-29 17:03:21 +08:00
parent 85e82a1913
commit 2276c1f9dd
6 changed files with 16 additions and 25 deletions

View File

@@ -1,11 +1,13 @@
export const options = {
color: ['#ffd601', '#72340b'],
color: ['#ffd601', '#72340b', '#a4c9d1'],
grid: {
top: 10,
bottom: 0,
left: 0,
right: 28,
containLabel: true,
},
legend: {
show: false,
},
xAxis: {
max: 100,
@@ -23,8 +25,6 @@ export const options = {
type: "category",
data: ["A组", "B组", "C组"],
inverse: true,
animationDuration: 300,
animationDurationUpdate: 300,
max: 2, // only the largest 3 bars will be displayed
axisLabel: {
fontSize: 16,
@@ -38,27 +38,18 @@ export const options = {
},
series: [
{
realtimeSort: true,
type: "bar",
// data: [10, 20, 30],
data: [],
label: {
show: true,
position: "right",
valueAnimation: true,
formatter: "{c}%",
color: "#fff",
fontSize: 16,
},
},
],
legend: {
show: false,
},
animationDuration: 0,
animationDurationUpdate: 3000,
animationEasing: "linear",
animationEasingUpdate: "linear",
};
export default function setup(echartInstance, dataArr) {