Meta Description" name="description" />
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sampel Draft Laporan Keuangan</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f4f7f6;
color: #333;
padding: 40px 20px;
}
.container {
max-width: 800px;
margin: auto;
background: #ffffff;
padding: 30px;
border-radius: 12px;
box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
h2 {
text-align: center;
color: #2c3e50;
margin-bottom: 5px;
}
p.subtitle {
text-align: center;
color: #7f8c8d;
margin-bottom: 30px;
}
.chart-container {
width: 50%;
margin: auto;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 40px;
}
th, td {
border: 1px solid #e0e0e0;
padding: 15px;
text-align: left;
}
th {
background-color: #2c3e50;
color: #ffffff;
}
tr:nth-child(even) {
background-color: #f9f9f9;
}
</style>
</head>
<body>
<div class="container">
<h2>Visualisasi Laporan Keuangan</h2>
<p class="subtitle">Sampel Uji Coba (Operasional vs Pribadi)</p>
<div class="chart-container">
<canvas id="grafikKeuangan"></canvas>
</div>
<table>
<tr>
<th>Kategori Pengeluaran</th>
<th>Sub-Total (Rp)</th>
</tr>
<tr>
<td>Biaya Operasional</td>
<td>3.500.000</td>
</tr>
<tr>
<td>Biaya Pribadi</td>
<td>1.500.000</td>
</tr>
<tr>
<td><strong>Total Keseluruhan</strong></td>
<td><strong>5.000.000</strong></td>
</tr>
</table>
</div>
<script>
const ctx = document.getElementById('grafikKeuangan').getContext('2d');
new Chart(ctx, {
type: 'doughnut',
data: {
labels: ['Biaya Operasional', 'Biaya Pribadi'],
datasets: [{
data: [3500000, 1500000],
backgroundColor: ['#3498db', '#e74c3c'],
hoverOffset: 4
}]
},
options: {
responsive: true,
plugins: {
legend: {
position: 'bottom',
}
}
}
});
</script>
</body>
</html>
2
2
74KB
207KB
196.0ms
208.0ms
196.0ms