add separator in js for handle showing value is number
This commit is contained in:
@@ -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);
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user