e = {
series: [{
name: "达成率",
data: [89, 75, 99, 95, 87, 78, 89, 94]
}],
chart: {
foreColor: "#6c757d",
type: "bar",
height: 250,
zoom: {
enabled: !1
},
dropShadow: {
top: 3,
left: 10,
blur: 3,
opacity: .1,
color: "#0d6efd"
},
sparkline: {
enabled: !1
}
},
plotOptions: {
radialBar: {
hollow: {
size: "90%"
}
},
bar: {
columnWidth: "45%",
endingShape: "rounded"
}
},
markers: {
size: 0,
colors: ["#0d6efd"],
strokeColors: "red",
strokeWidth: 2,
hover: {
size: 7
}
},
dataLabels: {
enabled: true
},
stroke: {
show: !0,
width: 3,
curve: "smooth"
},
colors: ["#0d6efd"],
xaxis: {
categories: ["本周", "前一周", "前二周", "前三周", "前四周", "前五周", "前六周", "前七周"]
},
fill: {
opacity: 1
}
};
new ApexCharts(document.querySelector("#chart6"), e).render();
关键代码:
dataLabels: {
enabled: true
},