echarts 标准柱状图 模型
echarts 标准柱状图 模型 直接上代码
option = {
title: {
text: 单位统计,
left: center
},
legend: {
orient: vertical, left: left },
tooltip: {
},
dataset: {
source: [
[product, 已完成, 未完成],
[太原供水集团有限公司, 12, 23],
[城北营销分公司, 12, 31],
[集团公司生产技术部, 14, 23],
[太水市政四分公司, 11, 33],
[太水市政六分公司, 7, 12],
[太水市政七分公司, 4, 13],
[太水市政八分公司, 13, 3],
[太水市政九分公司, 12, 7],
[太水市政十分公司, 12, 70]
]
},
xAxis: {
type: category,
axisLabel: {
show: true,
textStyle: {
color: #595C61
},
rotate: 30
}
},
yAxis: {
},
series: [
{
type: bar,
itemStyle: {
normal: {
label: {
show: true, //开启显示
position: top, //在上方显示
textStyle: {
//数值样式
color: black,
fontSize: 16
}
}
}
}
},
{
type: bar,
itemStyle: {
normal: {
label: {
show: true, //开启显示
position: top, //在上方显示
textStyle: {
//数值样式
color: black,
fontSize: 16
}
}
}
}
}
]
};
上一篇:
IDEA上Java项目控制台中文乱码
