Skip to content

Commit 0d02b78

Browse files
committed
Fixed Pie Chart Component
1 parent f87efa8 commit 0d02b78

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/app/components/pieChart/pieChart.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<div class="panel panel-default">
33
<div class="panel-body easypiechart-panel">
44
<h4>{{properties['label']}}</h4>
5-
<div class="progressBarText">
6-
{{((properties['current']/properties['max'])*100).toFixed(1)}}%
5+
<div class="progressBarText" [style.color]="properties['color']">
6+
{{((properties['current']/properties['max'])*100).toPrecision(3)}}%
77
</div>
88
<div class="progressive-pieChart">
99
<round-progress

src/app/components/pieChart/pieChart.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@
77
bottom: auto; left: 50%; transform: translateY(-50%) translateX(-50%);
88
font-size: 2.7rem;
99
padding-top: 10px;
10+
padding-left: 7.5px;
1011
}
1112

1213
.progressive-pieChart{
1314
padding: 30px;
1415
}
1516

1617
// Little larger screen
17-
@media only screen and (max-width: 480px){
18+
@media only screen and (max-width: 380px){
1819
.progressBarText {
19-
font-size: 0.8rem;
20+
font-size: 2rem;
2021
}
2122
}
2223

0 commit comments

Comments
 (0)