效果:
最近在做大屏遇到了好多用echart绘图,话不多说上代码
let Mycharts= echarts.init(
document.getElementById("histogram")
);
let option = {
title: {
text: "个",
position: "left",
top: "-3%",
textStyle: {
color: "#41A6FC",
fontSize: this.fontSizeRem(24),
},
},
grid: {
top: "15%",
left: "1%",
right: "1%",
bottom: "3%",
containLabel: true,
},
xAxis: {
type: "category",
data: ["xxx", "xxx", "xxx", "xxx"],
axisLabel: {
show: true,
interval: 0,
textStyle: {
color: "#41A6FC",
fontSize: this.fontSizeRem(24),
},
},
splitLine: {
show: false,
lineStyle: