Commit a54bda03 by Ari Agung Prasetiyo

perbaikan

1 parent 0aedfcbf
...@@ -215,12 +215,12 @@ ...@@ -215,12 +215,12 @@
$(document).ready(function () { $(document).ready(function () {
var ctxBar = document.getElementById('chartPie').getContext('2d'); var ctxBar = document.getElementById('chartPie').getContext('2d');
var canvasBar = document.getElementById('chartPie'); var canvasBar = document.getElementById('chartPie');
canvasBar.width = window.innerWidth; //canvasBar.width = window.innerWidth;
// canvas.height = window.innerHeight / 2; //canvasBar.height = window.innerHeight;
//console.log(window.innerHeight); //console.log(window.innerHeight);
//console.log($("#panelRealisasi").height()) //console.log($("#panelRealisasi").height())
canvasBar.height = $("#panelRealisasi").height() + 125;
canvasBar.parentNode.parentNode.parentNode.style.height = $("#panelRealisasi").height() + "px"; canvasBar.parentNode.parentNode.parentNode.style.height = $("#panelRealisasi").height() + "px";
//canvasBar.height = canvasBar.parentNode.style.height;
// const bar_data = { // const bar_data = {
// labels: [ // labels: [
// 'Ketetapan', // 'Ketetapan',
...@@ -283,7 +283,7 @@ ...@@ -283,7 +283,7 @@
// } // }
// }, // },
responsive: true, responsive: true,
maintainAspectRatio: true, maintainAspectRatio: false,
plugins: { plugins: {
legend: { legend: {
display: false, display: false,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!