Skip to content

Commit

Permalink
Merge pull request #47 from marinesnow34/test
Browse files Browse the repository at this point in the history
Fix: 정규형 방식 변경2
  • Loading branch information
marinesnow34 authored Dec 1, 2023
2 parents f3a1aa5 + 5d86811 commit 2d12f7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/views/Chart/ApexChart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function UserPowerChart({data}) {
enabled: true,
formatter: function (val) {
const newVal = (val / 10000);
return `${newVal.toFixed(1).toString().replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g, ",")}만원`;
return `${newVal.toFixed(1).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")}만원`;
},
offsetY: -20,
style: {
Expand Down Expand Up @@ -78,7 +78,7 @@ export default function UserPowerChart({data}) {
// show: false,
formatter: function (val) {
const newVal = (val / 10000);
return `${newVal.toFixed(1).toString().replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g, ",")}만원`;
return `${newVal.toFixed(1).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")}만원`;
}
}

Expand All @@ -87,7 +87,7 @@ export default function UserPowerChart({data}) {
show: false,
formatter: function (val) {
const newVal = (val / 10000);
return `${newVal.toFixed(1).toString().replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g, ",")}만원`; }
return `${newVal.toFixed(1).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")}만원`; }
},
fill: {
colors: ['#D82356']
Expand Down

0 comments on commit 2d12f7c

Please sign in to comment.