Clean up analytic code, update Simplified Chinese translations.

This commit is contained in:
0xJacky 2022-02-23 21:40:43 +08:00
parent 46e86d2a3d
commit 42417e806d
17 changed files with 638 additions and 286 deletions

View file

@ -1,6 +1,7 @@
<template>
<div class="container">
<p class="text">{{ centerText }}</p>
<p class="bottom_text">{{ bottomText }}</p>
<apexchart type="radialBar" height="205" :options="chartOptions" :series="series" ref="chart"/>
</div>
</template>
@ -18,6 +19,7 @@ export default {
centerText: String,
colors: String,
name: String,
bottomText: String,
},
watch: {
series: {
@ -49,9 +51,7 @@ export default {
offsetY: 60,
fontSize: '14px',
color: undefined,
formatter: function (val) {
return val + "%";
}
formatter: () => {return ''}
}
}
}
@ -87,7 +87,13 @@ export default {
top: calc(72px);
width: 100%;
text-align: center;
}
.bottom_text {
position: absolute;
top: calc(142px);
font-weight: 600;
width: 100%;
text-align: center;
}
}
</style>