bidbuddy-visualizer / index.html
willplant03's picture
create a data visualisation from this data:
fe0b542 verified
Raw
History Blame Contribute Delete
3.21 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BidBuddy Visualizer</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="components/navbar.js"></script>
</head>
<body class="bg-gray-50">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-8">
<div class="text-center mb-12">
<h1 class="text-4xl font-bold text-gray-800 mb-2">BidBuddy Visualizer</h1>
<p class="text-xl text-gray-600">Interactive data visualization of bidding patterns</p>
</div>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-12">
<div class="bg-white p-6 rounded-xl shadow-md">
<h2 class="text-2xl font-semibold text-gray-800 mb-4">Budget Utilization</h2>
<div class="h-80">
<canvas id="budgetChart"></canvas>
</div>
</div>
<div class="bg-white p-6 rounded-xl shadow-md">
<h2 class="text-2xl font-semibold text-gray-800 mb-4">Bid vs Demand</h2>
<div class="h-80">
<canvas id="bidDemandChart"></canvas>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-xl shadow-md mb-12">
<h2 class="text-2xl font-semibold text-gray-800 mb-4">Detailed Data View</h2>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Hour</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Search</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Demand</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Bid</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Budget Spent</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">% of Budget</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200" id="dataTableBody">
<!-- Data will be inserted here by JavaScript -->
</tbody>
</table>
</div>
</div>
</main>
<script src="script.js"></script>
<script>
feather.replace();
</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>