Prepoare repoet with this data
Browse files- index.html +9 -5
- report.html +311 -0
index.html
CHANGED
|
@@ -18,10 +18,13 @@
|
|
| 18 |
<div class="relative z-10 text-center text-white px-4">
|
| 19 |
<h1 class="text-5xl md:text-7xl font-bold mb-6">DataViz Insight Hub</h1>
|
| 20 |
<p class="text-xl md:text-2xl mb-8 max-w-3xl mx-auto">Transform raw data into beautiful, interactive visual reports</p>
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
| 25 |
</div>
|
| 26 |
|
| 27 |
<!-- Reports Section -->
|
|
@@ -164,9 +167,10 @@
|
|
| 164 |
<h4 class="font-semibold mb-4">Quick Links</h4>
|
| 165 |
<ul class="space-y-2">
|
| 166 |
<li><a href="#" class="text-gray-300 hover:text-white transition-colors">All Reports</a></li>
|
|
|
|
| 167 |
<li><a href="#" class="text-gray-300 hover:text-white transition-colors">Data Sources</a></li>
|
| 168 |
<li><a href="#" class="text-gray-300 hover:text-white transition-colors">API Documentation</a></li>
|
| 169 |
-
|
| 170 |
</div>
|
| 171 |
<div>
|
| 172 |
<h4 class="font-semibold mb-4">Connect With Us</h4>
|
|
|
|
| 18 |
<div class="relative z-10 text-center text-white px-4">
|
| 19 |
<h1 class="text-5xl md:text-7xl font-bold mb-6">DataViz Insight Hub</h1>
|
| 20 |
<p class="text-xl md:text-2xl mb-8 max-w-3xl mx-auto">Transform raw data into beautiful, interactive visual reports</p>
|
| 21 |
+
<button onclick="scrollToReports()" class="bg-blue-600 hover:bg-blue-700 text-white font-semibold py-3 px-8 rounded-lg shadow-lg transition-all duration-300 transform hover:scale-105 flex items-center mx-auto">
|
| 22 |
+
<i data-feather="bar-chart-2" class="mr-2"></i> Explore Reports
|
| 23 |
+
</button>
|
| 24 |
+
<a href="report.html" class="mt-4 bg-green-600 hover:bg-green-700 text-white font-semibold py-3 px-8 rounded-lg shadow-lg transition-all duration-300 transform hover:scale-105 flex items-center mx-auto">
|
| 25 |
+
<i data-feather="file-text" class="mr-2"></i> View Full Report
|
| 26 |
+
</a>
|
| 27 |
+
</div>
|
| 28 |
</div>
|
| 29 |
|
| 30 |
<!-- Reports Section -->
|
|
|
|
| 167 |
<h4 class="font-semibold mb-4">Quick Links</h4>
|
| 168 |
<ul class="space-y-2">
|
| 169 |
<li><a href="#" class="text-gray-300 hover:text-white transition-colors">All Reports</a></li>
|
| 170 |
+
<li><a href="report.html" class="text-gray-300 hover:text-white transition-colors">Full Report</a></li>
|
| 171 |
<li><a href="#" class="text-gray-300 hover:text-white transition-colors">Data Sources</a></li>
|
| 172 |
<li><a href="#" class="text-gray-300 hover:text-white transition-colors">API Documentation</a></li>
|
| 173 |
+
</ul>
|
| 174 |
</div>
|
| 175 |
<div>
|
| 176 |
<h4 class="font-semibold mb-4">Connect With Us</h4>
|
report.html
ADDED
|
@@ -0,0 +1,311 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Comprehensive Data Report - DataViz Insight Hub</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 11 |
+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
| 12 |
+
</head>
|
| 13 |
+
<body class="bg-gray-50">
|
| 14 |
+
<!-- Header -->
|
| 15 |
+
<header class="bg-white shadow-sm">
|
| 16 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4">
|
| 17 |
+
<div class="flex justify-between items-center">
|
| 18 |
+
<a href="index.html" class="text-blue-600 hover:text-blue-800 font-semibold flex items-center">
|
| 19 |
+
<i data-feather="arrow-left" class="mr-2 h-5 w-5"></i> Back to Dashboard
|
| 20 |
+
</a>
|
| 21 |
+
<h1 class="text-2xl font-bold text-gray-800">Comprehensive Data Report</h1>
|
| 22 |
+
<div class="flex items-center space-x-4">
|
| 23 |
+
<button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition-colors flex items-center">
|
| 24 |
+
<i data-feather="download" class="mr-2 h-4 w-4"></i> Export PDF
|
| 25 |
+
</button>
|
| 26 |
+
<span class="text-sm text-gray-500">Generated: <span id="current-date"></span></span>
|
| 27 |
+
</div>
|
| 28 |
+
</div>
|
| 29 |
+
</div>
|
| 30 |
+
</header>
|
| 31 |
+
|
| 32 |
+
<!-- Report Content -->
|
| 33 |
+
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
| 34 |
+
<!-- Executive Summary -->
|
| 35 |
+
<section class="bg-white rounded-xl shadow-md p-6 mb-8">
|
| 36 |
+
<h2 class="text-2xl font-bold text-gray-800 mb-4">Executive Summary</h2>
|
| 37 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
|
| 38 |
+
<div class="bg-blue-50 p-4 rounded-lg">
|
| 39 |
+
<div class="flex items-center mb-2">
|
| 40 |
+
<i data-feather="dollar-sign" class="text-blue-600 h-6 w-6 mr-2"></i>
|
| 41 |
+
<h3 class="font-semibold text-gray-800">Total Revenue</h3>
|
| 42 |
+
</div>
|
| 43 |
+
<p class="text-3xl font-bold text-blue-600">$2.4M</p>
|
| 44 |
+
<p class="text-sm text-green-600">+12.5% from last month</p>
|
| 45 |
+
</div>
|
| 46 |
+
<div class="bg-green-50 p-4 rounded-lg">
|
| 47 |
+
<div class="flex items-center mb-2">
|
| 48 |
+
<i data-feather="users" class="text-green-600 h-6 w-6 mr-2"></i>
|
| 49 |
+
<h3 class="font-semibold text-gray-800">Active Users</h3>
|
| 50 |
+
</div>
|
| 51 |
+
<p class="text-3xl font-bold text-green-600">24.8K</p>
|
| 52 |
+
<p class="text-sm text-green-600">+8.3% from last month</p>
|
| 53 |
+
</div>
|
| 54 |
+
<div class="bg-purple-50 p-4 rounded-lg">
|
| 55 |
+
<div class="flex items-center mb-2">
|
| 56 |
+
<i data-feather="shopping-cart" class="text-purple-600 h-6 w-6 mr-2"></i>
|
| 57 |
+
<h3 class="font-semibold text-gray-800">New Orders</h3>
|
| 58 |
+
</div>
|
| 59 |
+
<p class="text-3xl font-bold text-purple-600">3.2K</p>
|
| 60 |
+
<p class="text-sm text-green-600">+5.7% from last month</p>
|
| 61 |
+
</div>
|
| 62 |
+
</div>
|
| 63 |
+
<div class="prose max-w-none">
|
| 64 |
+
<p class="text-gray-700">
|
| 65 |
+
Overall performance shows strong growth across key metrics. Revenue increased by 12.5% month-over-month,
|
| 66 |
+
driven by improved conversion rates and increased user engagement. The marketing ROI improved significantly
|
| 67 |
+
with social media campaigns showing the highest return.
|
| 68 |
+
</p>
|
| 69 |
+
</div>
|
| 70 |
+
</section>
|
| 71 |
+
|
| 72 |
+
<!-- Revenue Analysis -->
|
| 73 |
+
<section class="bg-white rounded-xl shadow-md p-6 mb-8">
|
| 74 |
+
<h2 class="text-2xl font-bold text-gray-800 mb-6">Revenue Analysis</h2>
|
| 75 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
|
| 76 |
+
<div>
|
| 77 |
+
<h3 class="text-lg font-semibold mb-4">Quarterly Revenue Breakdown</h3>
|
| 78 |
+
<canvas id="revenueChart" class="w-full h-64"></canvas>
|
| 79 |
+
</div>
|
| 80 |
+
<div>
|
| 81 |
+
<h3 class="text-lg font-semibold mb-4">Revenue by Category</h3>
|
| 82 |
+
<canvas id="categoryChart" class="w-full h-64"></canvas>
|
| 83 |
+
</div>
|
| 84 |
+
</div>
|
| 85 |
+
<div class="mt-6 prose max-w-none">
|
| 86 |
+
<p class="text-gray-700">
|
| 87 |
+
Q4 showed the strongest performance with $610,000 in revenue, representing a 5.2% increase from Q3.
|
| 88 |
+
Product sales continue to be the primary revenue driver, accounting for 65% of total revenue.
|
| 89 |
+
</p>
|
| 90 |
+
</div>
|
| 91 |
+
</section>
|
| 92 |
+
|
| 93 |
+
<!-- User Engagement -->
|
| 94 |
+
<section class="bg-white rounded-xl shadow-md p-6 mb-8">
|
| 95 |
+
<h2 class="text-2xl font-bold text-gray-800 mb-6">User Engagement Metrics</h2>
|
| 96 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
|
| 97 |
+
<div>
|
| 98 |
+
<h3 class="text-lg font-semibold mb-4">Monthly Active Users</h3>
|
| 99 |
+
<canvas id="usersChart" class="w-full h-64"></canvas>
|
| 100 |
+
</div>
|
| 101 |
+
<div>
|
| 102 |
+
<h3 class="text-lg font-semibold mb-4">Session Duration</h3>
|
| 103 |
+
<canvas id="sessionChart" class="w-full h-64"></canvas>
|
| 104 |
+
</div>
|
| 105 |
+
</div>
|
| 106 |
+
<div class="mt-6 prose max-w-none">
|
| 107 |
+
<p class="text-gray-700">
|
| 108 |
+
User engagement continues to grow with average session duration increasing to 4.2 minutes.
|
| 109 |
+
The mobile app shows higher engagement rates compared to web platforms.
|
| 110 |
+
</p>
|
| 111 |
+
</div>
|
| 112 |
+
</section>
|
| 113 |
+
|
| 114 |
+
<!-- Marketing Performance -->
|
| 115 |
+
<section class="bg-white rounded-xl shadow-md p-6 mb-8">
|
| 116 |
+
<h2 class="text-2xl font-bold text-gray-800 mb-6">Marketing Performance</h2>
|
| 117 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
|
| 118 |
+
<div>
|
| 119 |
+
<h3 class="text-lg font-semibold mb-4">Campaign ROI</h3>
|
| 120 |
+
<canvas id="roiChart" class="w-full h-64"></canvas>
|
| 121 |
+
</div>
|
| 122 |
+
<div>
|
| 123 |
+
<h3 class="text-lg font-semibold mb-4">Conversion Rates</h3>
|
| 124 |
+
<canvas id="conversionChart" class="w-full h-64"></canvas>
|
| 125 |
+
</div>
|
| 126 |
+
</div>
|
| 127 |
+
<div class="mt-6 prose max-w-none">
|
| 128 |
+
<p class="text-gray-700">
|
| 129 |
+
Social media campaigns delivered the highest ROI at 4.2x, while email marketing showed improved
|
| 130 |
+
conversion rates of 3.8%. Overall marketing spend efficiency improved by 18% compared to last quarter.
|
| 131 |
+
</p>
|
| 132 |
+
</div>
|
| 133 |
+
</section>
|
| 134 |
+
|
| 135 |
+
<!-- Recommendations -->
|
| 136 |
+
<section class="bg-blue-50 rounded-xl shadow-md p-6">
|
| 137 |
+
<h2 class="text-2xl font-bold text-gray-800 mb-4">Recommendations</h2>
|
| 138 |
+
<div class="prose max-w-none">
|
| 139 |
+
<ul class="list-disc list-inside text-gray-700 space-y-2">
|
| 140 |
+
<li>Increase investment in social media marketing campaigns due to high ROI</li>
|
| 141 |
+
<li>Optimize mobile user experience to further improve engagement metrics</li>
|
| 142 |
+
<li>Expand product categories based on customer demand analysis</li>
|
| 143 |
+
<li>Implement A/B testing for email marketing campaigns to improve conversion rates</li>
|
| 144 |
+
<li>Focus on retention strategies to maintain current growth trajectory</li>
|
| 145 |
+
</ul>
|
| 146 |
+
</div>
|
| 147 |
+
</section>
|
| 148 |
+
</main>
|
| 149 |
+
|
| 150 |
+
<!-- Footer -->
|
| 151 |
+
<footer class="bg-gray-800 text-white py-8 px-4 mt-12">
|
| 152 |
+
<div class="max-w-7xl mx-auto text-center">
|
| 153 |
+
<p>© 2024 DataViz Insight Hub. All rights reserved.</p>
|
| 154 |
+
<p class="text-gray-300 mt-2">Report generated on <span id="report-date"></span></p>
|
| 155 |
+
</div>
|
| 156 |
+
</footer>
|
| 157 |
+
|
| 158 |
+
<script>
|
| 159 |
+
// Set current date
|
| 160 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 161 |
+
const now = new Date();
|
| 162 |
+
const options = { year: 'numeric', month: 'long', day: 'numeric' };
|
| 163 |
+
const dateString = now.toLocaleDateString('en-US', options);
|
| 164 |
+
document.getElementById('current-date').textContent = dateString;
|
| 165 |
+
document.getElementById('report-date').textContent = dateString;
|
| 166 |
+
|
| 167 |
+
feather.replace();
|
| 168 |
+
initReportCharts();
|
| 169 |
+
});
|
| 170 |
+
|
| 171 |
+
function initReportCharts() {
|
| 172 |
+
// Revenue Chart
|
| 173 |
+
new Chart(document.getElementById('revenueChart'), {
|
| 174 |
+
type: 'bar',
|
| 175 |
+
data: {
|
| 176 |
+
labels: ['Q1', 'Q2', 'Q3', 'Q4'],
|
| 177 |
+
datasets: [{
|
| 178 |
+
label: 'Revenue ($)',
|
| 179 |
+
data: [450000, 520000, 580000, 610000],
|
| 180 |
+
backgroundColor: 'rgba(59, 130, 246, 0.8)',
|
| 181 |
+
borderColor: 'rgba(59, 130, 246, 1)',
|
| 182 |
+
borderWidth: 1
|
| 183 |
+
}]
|
| 184 |
+
},
|
| 185 |
+
options: {
|
| 186 |
+
responsive: true,
|
| 187 |
+
plugins: {
|
| 188 |
+
legend: { display: false },
|
| 189 |
+
title: { display: false }
|
| 190 |
+
},
|
| 191 |
+
scales: {
|
| 192 |
+
y: {
|
| 193 |
+
beginAtZero: true,
|
| 194 |
+
ticks: {
|
| 195 |
+
callback: function(value) {
|
| 196 |
+
return '$' + (value / 1000) + 'K';
|
| 197 |
+
}
|
| 198 |
+
}
|
| 199 |
+
}
|
| 200 |
+
}
|
| 201 |
+
}
|
| 202 |
+
});
|
| 203 |
+
|
| 204 |
+
// Category Chart
|
| 205 |
+
new Chart(document.getElementById('categoryChart'), {
|
| 206 |
+
type: 'doughnut',
|
| 207 |
+
data: {
|
| 208 |
+
labels: ['Product Sales', 'Services', 'Subscriptions', 'Other'],
|
| 209 |
+
datasets: [{
|
| 210 |
+
data: [65, 20, 10, 5],
|
| 211 |
+
backgroundColor: [
|
| 212 |
+
'rgba(59, 130, 246, 0.8)',
|
| 213 |
+
'rgba(16, 185, 129, 0.8)',
|
| 214 |
+
'rgba(139, 92, 246, 0.8)',
|
| 215 |
+
'rgba(249, 115, 22, 0.8)'
|
| 216 |
+
]
|
| 217 |
+
}]
|
| 218 |
+
},
|
| 219 |
+
options: {
|
| 220 |
+
responsive: true,
|
| 221 |
+
plugins: {
|
| 222 |
+
legend: { position: 'right' }
|
| 223 |
+
}
|
| 224 |
+
}
|
| 225 |
+
});
|
| 226 |
+
|
| 227 |
+
// Users Chart
|
| 228 |
+
new Chart(document.getElementById('usersChart'), {
|
| 229 |
+
type: 'line',
|
| 230 |
+
data: {
|
| 231 |
+
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
|
| 232 |
+
datasets: [{
|
| 233 |
+
label: 'Active Users',
|
| 234 |
+
data: [18000, 19500, 21000, 22500, 23800, 24800],
|
| 235 |
+
borderColor: 'rgba(16, 185, 129, 1)',
|
| 236 |
+
backgroundColor: 'rgba(16, 185, 129, 0.1)',
|
| 237 |
+
tension: 0.4,
|
| 238 |
+
fill: true
|
| 239 |
+
}]
|
| 240 |
+
},
|
| 241 |
+
options: {
|
| 242 |
+
responsive: true,
|
| 243 |
+
plugins: {
|
| 244 |
+
legend: { display: false }
|
| 245 |
+
}
|
| 246 |
+
}
|
| 247 |
+
});
|
| 248 |
+
|
| 249 |
+
// Session Chart
|
| 250 |
+
new Chart(document.getElementById('sessionChart'), {
|
| 251 |
+
type: 'bar',
|
| 252 |
+
data: {
|
| 253 |
+
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
|
| 254 |
+
datasets: [{
|
| 255 |
+
label: 'Avg Session (min)',
|
| 256 |
+
data: [3.2, 3.5, 3.7, 3.9, 4.0, 4.2],
|
| 257 |
+
backgroundColor: 'rgba(139, 92, 246, 0.8)'
|
| 258 |
+
}]
|
| 259 |
+
},
|
| 260 |
+
options: {
|
| 261 |
+
responsive: true,
|
| 262 |
+
plugins: {
|
| 263 |
+
legend: { display: false }
|
| 264 |
+
}
|
| 265 |
+
}
|
| 266 |
+
});
|
| 267 |
+
|
| 268 |
+
// ROI Chart
|
| 269 |
+
new Chart(document.getElementById('roiChart'), {
|
| 270 |
+
type: 'bar',
|
| 271 |
+
data: {
|
| 272 |
+
labels: ['Social Media', 'Email', 'Search Ads', 'Direct'],
|
| 273 |
+
datasets: [{
|
| 274 |
+
label: 'ROI (x)',
|
| 275 |
+
data: [4.2, 3.1, 2.8, 3.5],
|
| 276 |
+
backgroundColor: 'rgba(249, 115, 22, 0.8)'
|
| 277 |
+
}]
|
| 278 |
+
},
|
| 279 |
+
options: {
|
| 280 |
+
responsive: true,
|
| 281 |
+
plugins: {
|
| 282 |
+
legend: { display: false }
|
| 283 |
+
}
|
| 284 |
+
}
|
| 285 |
+
});
|
| 286 |
+
|
| 287 |
+
// Conversion Chart
|
| 288 |
+
new Chart(document.getElementById('conversionChart'), {
|
| 289 |
+
type: 'line',
|
| 290 |
+
data: {
|
| 291 |
+
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
|
| 292 |
+
datasets: [{
|
| 293 |
+
label: 'Conversion Rate (%)',
|
| 294 |
+
data: [42.1, 43.5, 44.8, 45.2, 46.7, 47.3],
|
| 295 |
+
borderColor: 'rgba(220, 38, 38, 1)',
|
| 296 |
+
backgroundColor: 'rgba(220, 38, 38, 0.1)',
|
| 297 |
+
tension: 0.4,
|
| 298 |
+
fill: true
|
| 299 |
+
}]
|
| 300 |
+
},
|
| 301 |
+
options: {
|
| 302 |
+
responsive: true,
|
| 303 |
+
plugins: {
|
| 304 |
+
legend: { display: false }
|
| 305 |
+
}
|
| 306 |
+
}
|
| 307 |
+
});
|
| 308 |
+
}
|
| 309 |
+
</script>
|
| 310 |
+
</body>
|
| 311 |
+
</html>
|