add separator in js for handle showing value is number

This commit is contained in:
arifal
2025-06-24 12:02:17 +07:00
parent b895f61701
commit e5baf5318f
10 changed files with 105 additions and 74 deletions

View File

@@ -1,5 +1,5 @@
import ApexCharts from "apexcharts";
import { addThousandSeparators } from "../../global-config.js";
class GrowthReport {
init() {
this.loadChart();
@@ -65,7 +65,7 @@ class GrowthReport {
},
labels: {
formatter: function (value) {
return "Rp. " + value.toLocaleString("id-ID");
return "Rp. " + addThousandSeparators(value);
},
},
},