Skip to content

Commit 9f7ad4a

Browse files
committed
fix dashboard radial bar issue
1 parent 8c3e481 commit 9f7ad4a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

frontend/src/components/Chart/RadialBarChart.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="container">
33
<p class="text">{{ centerText }}</p>
44
<p class="bottom_text">{{ bottomText }}</p>
5-
<apexchart type="radialBar" height="205" :options="chartOptions" :series="series" ref="chart"/>
5+
<apexchart class="radialBar" type="radialBar" height="205" :options="chartOptions" :series="series" ref="chart"/>
66
</div>
77
</template>
88

@@ -83,6 +83,14 @@ export default {
8383
position: relative;
8484
margin: 0 auto;
8585
height: 112px!important;
86+
.radialBar {
87+
position: absolute;
88+
top: -30px;
89+
@media(max-width: 768px) and (min-width: 290px) {
90+
left: 50%;
91+
transform: translateX(-50%);
92+
}
93+
}
8694
.text {
8795
position: absolute;
8896
top: calc(50% - 5px);

0 commit comments

Comments
 (0)