Commit a54bda03 by Ari Agung Prasetiyo

perbaikan

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