|
@@ -2,8 +2,6 @@
|
|
|
<div class="w-full h-full">
|
|
|
<div class="c-title">
|
|
|
<span>风险辩识</span>
|
|
|
- <span class="ml20">作业单位:1 条</span>
|
|
|
- <span class="ml10">风险作业:2 条</span>
|
|
|
</div>
|
|
|
<div
|
|
|
ref="barChart2"
|
|
@@ -77,19 +75,30 @@ export default {
|
|
|
radius: ["40%", "70%"],
|
|
|
avoidLabelOverlap: false,
|
|
|
label: {
|
|
|
- show: false,
|
|
|
- position: "center",
|
|
|
+ show: true,
|
|
|
+ formatter: "{b|{b}} \n {d|{c}条}",
|
|
|
+ rich: {
|
|
|
+ d: {
|
|
|
+ color: "#fff",
|
|
|
+ fontSize: 16,
|
|
|
+ lineHeight: 24,
|
|
|
+ height: 24,
|
|
|
+ },
|
|
|
+ b: {
|
|
|
+ color: "#D3EBFF",
|
|
|
+ fontSize: 14,
|
|
|
+ lineHeight: 20,
|
|
|
+ align: "left",
|
|
|
+ },
|
|
|
+ },
|
|
|
},
|
|
|
emphasis: {
|
|
|
- label: {
|
|
|
- show: true,
|
|
|
- fontSize: 40,
|
|
|
- fontWeight: "bold",
|
|
|
+ itemStyle: {
|
|
|
+ shadowBlur: 10,
|
|
|
+ shadowOffsetX: 0,
|
|
|
+ shadowColor: "rgba(0, 0, 0, 0.5)",
|
|
|
},
|
|
|
},
|
|
|
- labelLine: {
|
|
|
- show: false,
|
|
|
- },
|
|
|
data: [
|
|
|
{ value: 1048, name: "风险作业" },
|
|
|
{ value: 735, name: "作业单位" },
|