ProcessedHam's picture
create a chart comparing the price of Sun bear gallbladder to the price of other things per gram
9de9110 verified
Raw
History Blame Contribute Delete
4.44 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Deforestation Data Visualizer</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body class="bg-gray-50 min-h-screen">
<div class="container mx-auto px-4 py-12">
<header class="text-center mb-12">
<h1 class="text-4xl font-bold text-gray-800 mb-2">Global Deforestation Contributors</h1>
<p class="text-lg text-gray-600">Visualizing country contributions to forest loss</p>
</header>
<main class="flex flex-col lg:flex-row gap-8 items-center justify-center">
<div class="w-full lg:w-2/3">
<div class="bg-white rounded-xl shadow-lg p-6 h-full">
<h2 class="text-xl font-semibold text-gray-800 mb-4">Deforestation by Country</h2>
<div class="chart-container relative h-full">
<canvas id="deforestationChart"></canvas>
</div>
<div class="mt-8">
<div class="bg-white rounded-xl shadow-lg p-6">
<div class="chart-container relative h-full" style="height: 400px">
<canvas id="oilPalmChart"></canvas>
</div>
</div>
</div>
<div class="mt-8">
<div class="bg-white rounded-xl shadow-lg p-6">
<div class="chart-container relative h-full" style="height: 400px">
<canvas id="priceComparisonChart"></canvas>
</div>
</div>
</div>
</div>
</div>
<div class="w-full lg:w-1/3">
<div class="bg-white rounded-xl shadow-lg p-6">
<h2 class="text-xl font-semibold text-gray-800 mb-4">Key Insights</h2>
<ul class="space-y-3">
<li class="flex items-center">
<span class="w-4 h-4 rounded-full bg-red-500 mr-2"></span>
<span>Brazil accounts for the largest share</span>
</li>
<li class="flex items-center">
<span class="w-4 h-4 rounded-full bg-blue-500 mr-2"></span>
<span>Indonesia is second largest contributor</span>
</li>
<li class="flex items-center">
<span class="w-4 h-4 rounded-full bg-green-500 mr-2"></span>
<span>D.R. Congo represents significant loss</span>
</li>
<li class="flex items-center">
<span class="w-4 h-4 rounded-full bg-yellow-500 mr-2"></span>
<span>Other countries collectively contribute</span>
</li>
</ul>
<div class="mt-6 bg-gray-100 p-4 rounded-lg">
<h3 class="font-medium text-gray-700 mb-2">Data Sources</h3>
<p class="text-sm text-gray-600 mb-2">Data from Global Forest Watch and FAO</p>
<p class="text-sm text-blue-600 hover:underline">
<a href="https://www.globalforestwatch.org/blog/data-and-research/forest-change-southeast-asia/" target="_blank" rel="noopener noreferrer">
Southeast Asia Forest Change Data
</a>
</p>
</div>
</div>
</div>
</main>
<footer class="mt-12 text-center text-gray-500 text-sm">
<p>© 2023 Deforestation Data Visualizer | Made with ❤️ for our planet</p>
</footer>
</div>
<script src="script.js"></script>
<script>
feather.replace();
</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>