diff --git a/resources/views/dashboard/produktivitas.blade.php b/resources/views/dashboard/produktivitas.blade.php index d6b3b29..d46008e 100644 --- a/resources/views/dashboard/produktivitas.blade.php +++ b/resources/views/dashboard/produktivitas.blade.php @@ -250,7 +250,7 @@ max-height: calc(100% - 2rem); overflow-y: auto; padding: .875rem; - pointer-events: none; + pointer-events: auto; position: absolute; right: 1rem; top: 1rem; @@ -1124,10 +1124,9 @@ document.addEventListener('DOMContentLoaded', function () { return `
${emptyLabel}
`; } - const visibleRows = rows.slice(0, 5); - const maxValue = Math.max(...visibleRows.map(row => Number(row.jumlah || 0)), 1); + const maxValue = Math.max(...rows.map(row => Number(row.jumlah || 0)), 1); - const bars = visibleRows.map(function (row) { + return rows.map(function (row) { const value = Number(row.jumlah || 0); const width = Math.max(value > 0 ? 3 : 0, (value / maxValue) * 100); @@ -1143,11 +1142,6 @@ document.addEventListener('DOMContentLoaded', function () { `; }).join(''); - - const remaining = rows.length - visibleRows.length; - return bars + (remaining > 0 - ? `
+ ${formatNumber(remaining, 0)} kategori lainnya
` - : ''); }; element.innerHTML = `