You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
2.6 KiB

<template>
<div class="bottomLeft">
<dv-border-box-13>
<div class="chartsBox">
<div class="chartItem">
<p>手术等级</p>
<dv-charts :option="option1"></dv-charts>
</div>
<div class="chartItem">
<p>ASA分级</p>
<dv-charts :option="option2"></dv-charts>
</div>
</div>
</dv-border-box-13>
</div>
</template>
<script>
export default {
data() {
return {
option1: {
series: [
{
type: 'pie',
2 years ago
radius: ['32%', '44%'],
data: [
{
name: '一级',
2 years ago
value: 148,
},
{
name: '二级',
2 years ago
value: 87,
},
{
name: '三级',
2 years ago
value: 75,
},
{
name: '四级',
2 years ago
value: 40,
},
],
outsideLabel: {
2 years ago
formatter: '{name}{value}',
labelLineBendGap: '8%',
2 years ago
labelLineEndLength: 10,
style: {
fontSize: 16,
},
},
},
],
},
option2: {
series: [
{
type: 'pie',
2 years ago
radius: ['32%', '44%'],
data: [
{
name: 'I级',
2 years ago
value: 137,
},
{
name: 'II级',
2 years ago
value: 105,
},
{
name: 'III级',
2 years ago
value: 58,
},
{
name: 'IV级',
2 years ago
value: 37,
},
{
name: 'V级',
value: 13,
},
],
outsideLabel: {
2 years ago
formatter: '{name}{value}',
labelLineBendGap: '8%',
2 years ago
labelLineEndLength: 10,
style: {
fontSize: 16,
},
},
},
],
},
};
},
};
</script>
<style lang="scss" scoped>
.bottomLeft {
2 years ago
flex-basis: 38%;
.chartsBox {
width: 100%;
height: 100%;
display: flex;
position: relative;
padding-top: 10px;
box-sizing: border-box;
.chartItem {
width: 50%;
height: 100%;
flex-shrink: 0;
padding-top: 40px;
box-sizing: border-box;
p {
font-size: 24px;
text-align: center;
letter-spacing: 0.1vh;
}
:deep(.dv-charts-container) {
height: 90%;
}
}
}
}
</style>