效果:

1.比较简单的方法
series: [
{
name: "重大风险",
type: "bar",
data: data2,
color: ExtremeRiskColor,
tooltip: {
valueFormatter: function (value) {
return value + ' 个';
}
},
},
{
name: "较大风险",
type: "bar",
data: data3,
color:LargerRiskColor,
tooltip: {
valueFormatter: function (value) {
return value + ' 个';
}
},
},
{
name: "一般风险",
type: "bar",
data: data4,
color: GeneralRiskColor,
tooltip: {
valueFormatter: function (value) {
return value + ' 个';
}
},
},
]















![[NDK]从Opengles到Vulkan-基础篇(9)-视口相关](https://img-blog.csdnimg.cn/img_convert/8e0a38524f68ed0900c7ded43b672f2a.png)



