fix render data and show count rab krk and dlh
This commit is contained in:
@@ -36,6 +36,11 @@ class BigData {
|
||||
this.initChartMenungguKlikDPMPTSP();
|
||||
this.initChartProsesDinasTeknis();
|
||||
this.initChartPotensiTataRuang();
|
||||
this.initChartBusinessRAB();
|
||||
this.initChartBusinessKRK();
|
||||
this.initChartNonBusinessRAB();
|
||||
this.initChartNonBusinessKRK();
|
||||
this.initChartNonBusinessDLH();
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
@@ -318,6 +323,37 @@ class BigData {
|
||||
element.innerText = `${this.resumeBigData.tata_ruang.percentage}%`;
|
||||
});
|
||||
}
|
||||
initChartBusinessRAB() {
|
||||
document.querySelectorAll("#business-rab-count").forEach((element) => {
|
||||
element.innerText = `${this.resumeBigData.business_rab_count}`;
|
||||
});
|
||||
}
|
||||
initChartBusinessKRK() {
|
||||
document.querySelectorAll("#business-krk-count").forEach((element) => {
|
||||
element.innerText = `${this.resumeBigData.business_krk_count}`;
|
||||
});
|
||||
}
|
||||
initChartNonBusinessRAB() {
|
||||
document
|
||||
.querySelectorAll("#non-business-rab-count")
|
||||
.forEach((element) => {
|
||||
element.innerText = `${this.resumeBigData.non_business_rab_count}`;
|
||||
});
|
||||
}
|
||||
initChartNonBusinessKRK() {
|
||||
document
|
||||
.querySelectorAll("#non-business-krk-count")
|
||||
.forEach((element) => {
|
||||
element.innerText = `${this.resumeBigData.non_business_krk_count}`;
|
||||
});
|
||||
}
|
||||
initChartNonBusinessDLH() {
|
||||
document
|
||||
.querySelectorAll("#non-business-dlh-count")
|
||||
.forEach((element) => {
|
||||
element.innerText = `${this.resumeBigData.non_business_dlh_count}`;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
document.addEventListener("DOMContentLoaded", async function (e) {
|
||||
|
||||
Reference in New Issue
Block a user