Commit 0aedfcbf by Ari Agung Prasetiyo

update pbb table

1 parent 5b2fc957
...@@ -217,8 +217,8 @@ ...@@ -217,8 +217,8 @@
var canvasBar = document.getElementById('chartPie'); var canvasBar = document.getElementById('chartPie');
canvasBar.width = window.innerWidth; canvasBar.width = window.innerWidth;
// canvas.height = window.innerHeight / 2; // canvas.height = window.innerHeight / 2;
console.log(window.innerHeight); //console.log(window.innerHeight);
console.log($("#panelRealisasi").height()) //console.log($("#panelRealisasi").height())
canvasBar.height = $("#panelRealisasi").height() + 125; canvasBar.height = $("#panelRealisasi").height() + 125;
canvasBar.parentNode.parentNode.parentNode.style.height = $("#panelRealisasi").height() + "px"; canvasBar.parentNode.parentNode.parentNode.style.height = $("#panelRealisasi").height() + "px";
// const bar_data = { // const bar_data = {
...@@ -282,7 +282,8 @@ ...@@ -282,7 +282,8 @@
// borderWidth: 2, // borderWidth: 2,
// } // }
// }, // },
// responsive: true, responsive: true,
maintainAspectRatio: true,
plugins: { plugins: {
legend: { legend: {
display: false, display: false,
...@@ -511,6 +512,7 @@ ...@@ -511,6 +512,7 @@
"searching": false, "searching": false,
"info": false, "info": false,
"autoWidth": false, "autoWidth": false,
"scrollX" : true,
"order": [[0, 'asc']], "order": [[0, 'asc']],
"columnDefs": [ "columnDefs": [
{ className: 'text-center', width: "50px", targets: [0] }, { className: 'text-center', width: "50px", targets: [0] },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!