Spaces:
Running
Running
File size: 30,323 Bytes
7e96d91 839bb6a 7e96d91 839bb6a 7e96d91 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PLUS20C California Ports Container Tracker</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.chart-container {
height: 300px;
position: relative;
}
.trend-up {
color: #10B981;
animation: pulse-up 1.5s infinite;
}
.trend-down {
color: #EF4444;
animation: pulse-down 1.5s infinite;
}
@keyframes pulse-up {
0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}
@keyframes pulse-down {
0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}
.news-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.glow {
box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}
.forecast-line {
border-style: dashed;
border-width: 2px;
}
.alert-banner {
animation: alert-pulse 2s infinite;
}
@keyframes alert-pulse {
0% { background-color: rgba(239, 68, 68, 0.1); }
50% { background-color: rgba(239, 68, 68, 0.2); }
100% { background-color: rgba(239, 68, 68, 0.1); }
}
</style>
</head>
<body class="bg-gray-50">
<header class="bg-blue-800 text-white">
<div class="container mx-auto px-4 py-6">
<div class="flex justify-between items-center">
<div>
<h1 class="text-3xl font-bold">California Ports Container Tracker</h1>
<p class="mt-2">Monitoring 20' shipping container volumes across major California ports</p>
</div>
<div class="hidden md:block">
<img src="https://www.portoflosangeles.org/images/default-source/default-album/port-of-los-angeles-logo.png" alt="Port of LA Logo" class="h-16">
</div>
</div>
</div>
</header>
<main class="container mx-auto px-4 py-8">
<!-- Alert Banner -->
<div class="alert-banner bg-red-100 border-l-4 border-red-500 p-4 mb-8 rounded-r flex items-center">
<div class="flex-shrink-0">
<i class="fas fa-exclamation-triangle text-red-500 text-xl mr-3"></i>
</div>
<div>
<h3 class="font-semibold text-red-800">Market Alert</h3>
<p class="text-red-700">Recent tariff changes have led to significant declines in container bookings. April volumes down 12% from forecast.</p>
</div>
</div>
<!-- Summary Cards -->
<div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8">
<div class="bg-white rounded-lg shadow-md p-6 glow">
<div class="flex items-center">
<div class="p-3 rounded-full bg-blue-100 text-blue-800 mr-4">
<i class="fas fa-ship text-2xl"></i>
</div>
<div>
<h3 class="text-gray-500 font-medium">Total 20' Containers</h3>
<p class="text-2xl font-bold">2,200,318</p>
<p class="text-sm mt-1">Year to Date (2025)</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow-md p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-red-100 text-red-800 mr-4">
<i class="fas fa-chart-line text-2xl"></i>
</div>
<div>
<h3 class="text-gray-500 font-medium">Monthly Change</h3>
<div class="flex items-center">
<p class="text-2xl font-bold text-red-600">-12.4%</p>
<i class="fas fa-arrow-down trend-down ml-2 text-xl"></i>
</div>
<p class="text-sm mt-1">vs. Previous Month</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow-md p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-purple-100 text-purple-800 mr-4">
<i class="fas fa-calendar-alt text-2xl"></i>
</div>
<div>
<h3 class="text-gray-500 font-medium">Current Month</h3>
<div class="flex items-center">
<p class="text-2xl font-bold">498,210</p>
</div>
<p class="text-sm mt-1">April 2025</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow-md p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-yellow-100 text-yellow-800 mr-4">
<i class="fas fa-chart-pie text-2xl"></i>
</div>
<div>
<h3 class="text-gray-500 font-medium">2025 Forecast</h3>
<div class="flex items-center">
<p class="text-2xl font-bold text-red-600">-8.2%</p>
<i class="fas fa-arrow-down trend-down ml-2 text-xl"></i>
</div>
<p class="text-sm mt-1">Annual Growth Projection</p>
</div>
</div>
</div>
</div>
<!-- Main Chart -->
<div class="bg-white rounded-lg shadow-md p-6 mb-8">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-semibold">Monthly 20' Container Volume</h2>
<div class="flex space-x-2">
<button class="px-3 py-1 bg-blue-100 text-blue-800 rounded-md text-sm">2024</button>
<button class="px-3 py-1 bg-gray-100 text-gray-800 rounded-md text-sm">2023</button>
<button class="px-3 py-1 bg-yellow-100 text-yellow-800 rounded-md text-sm">2025 Forecast</button>
<button class="px-3 py-1 bg-gray-100 text-gray-800 rounded-md text-sm">6M</button>
</div>
</div>
<div class="chart-container">
<canvas id="containerChart"></canvas>
</div>
<div class="mt-6 grid grid-cols-2 md:grid-cols-5 gap-4">
<div class="border-l-4 border-blue-500 pl-3">
<p class="text-gray-500 text-sm">Los Angeles</p>
<p class="font-bold">1,024,763</p>
</div>
<div class="border-l-4 border-green-500 pl-3">
<p class="text-gray-500 text-sm">Long Beach</p>
<p class="font-bold">812,432</p>
</div>
<div class="border-l-4 border-purple-500 pl-3">
<p class="text-gray-500 text-sm">Oakland</p>
<p class="font-bold">453,210</p>
</div>
<div class="border-l-4 border-yellow-500 pl-3">
<p class="text-gray-500 text-sm">San Diego</p>
<p class="font-bold">281,654</p>
</div>
<div class="border-l-4 border-red-500 pl-3">
<p class="text-gray-500 text-sm">Other</p>
<p class="font-bold">128,259</p>
</div>
</div>
</div>
<!-- Forecast Explanation -->
<div class="bg-red-50 border-l-4 border-red-400 p-4 mb-8 rounded-r">
<div class="flex">
<div class="flex-shrink-0">
<i class="fas fa-exclamation-circle text-red-500 text-xl mt-1 mr-3"></i>
</div>
<div>
<h3 class="text-lg font-medium text-red-800">Revised 2025 Forecast Methodology</h3>
<div class="mt-2 text-red-700">
<p>Our 2025 projections have been revised downward due to recent tariff impacts and booking declines. New factors include:</p>
<ul class="list-disc pl-5 mt-2 space-y-1">
<li>30% drop in container bookings following new tariffs (FreightWaves)</li>
<li>Reduced manufacturing output in key Asian markets</li>
<li>Increased shipping costs affecting demand</li>
<li>Shift to alternative trade routes</li>
</ul>
</div>
</div>
</div>
</div>
<!-- Monthly Trends Table -->
<div class="bg-white rounded-lg shadow-md p-6 mb-8">
<h2 class="text-xl font-semibold mb-6">Monthly Trends & Revised Forecast</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">Month</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">2023</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">2024</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">2025 Forecast</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">YoY Change</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Trend</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap font-medium">January</td>
<td class="px-6 py-4 whitespace-nowrap">281,654</td>
<td class="px-6 py-4 whitespace-nowrap">296,160</td>
<td class="px-6 py-4 whitespace-nowrap font-bold text-red-700">276,890</td>
<td class="px-6 py-4 whitespace-nowrap text-red-600">-6.5%</td>
<td class="px-6 py-4 whitespace-nowrap"><i class="fas fa-arrow-down trend-down"></i></td>
</tr>
<tr class="bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap font-medium">February</td>
<td class="px-6 py-4 whitespace-nowrap">276,543</td>
<td class="px-6 py-4 whitespace-nowrap">291,710</td>
<td class="px-6 py-4 whitespace-nowrap font-bold text-red-700">270,120</td>
<td class="px-6 py-4 whitespace-nowrap text-red-600">-7.4%</td>
<td class="px-6 py-4 whitespace-nowrap"><i class="fas fa-arrow-down trend-down"></i></td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap font-medium">March</td>
<td class="px-6 py-4 whitespace-nowrap">289,765</td>
<td class="px-6 py-4 whitespace-nowrap">299,876</td>
<td class="px-6 py-4 whitespace-nowrap font-bold text-red-700">285,450</td>
<td class="px-6 py-4 whitespace-nowrap text-red-600">-4.8%</td>
<td class="px-6 py-4 whitespace-nowrap"><i class="fas fa-arrow-down trend-down"></i></td>
</tr>
<tr class="bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap font-medium">April</td>
<td class="px-6 py-4 whitespace-nowrap">287,654</td>
<td class="px-6 py-4 whitespace-nowrap">312,446</td>
<td class="px-6 py-4 whitespace-nowrap font-bold text-red-700">275,890</td>
<td class="px-6 py-4 whitespace-nowrap text-red-600">-11.7%</td>
<td class="px-6 py-4 whitespace-nowrap"><i class="fas fa-arrow-down trend-down"></i></td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap font-medium">May</td>
<td class="px-6 py-4 whitespace-nowrap">302,456</td>
<td class="px-6 py-4 whitespace-nowrap text-gray-400">-</td>
<td class="px-6 py-4 whitespace-nowrap font-bold text-red-700">265,120</td>
<td class="px-6 py-4 whitespace-nowrap text-red-600">-12.3%</td>
<td class="px-6 py-4 whitespace-nowrap"><i class="fas fa-arrow-down trend-down"></i></td>
</tr>
<tr class="bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap font-medium">June</td>
<td class="px-6 py-4 whitespace-nowrap">298,765</td>
<td class="px-6 py-4 whitespace-nowrap text-gray-400">-</td>
<td class="px-6 py-4 whitespace-nowrap font-bold text-red-700">260,450</td>
<td class="px-6 py-4 whitespace-nowrap text-red-600">-12.8%</td>
<td class="px-6 py-4 whitespace-nowrap"><i class="fas fa-arrow-down trend-down"></i></td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap font-medium">July</td>
<td class="px-6 py-4 whitespace-nowrap">312,345</td>
<td class="px-6 py-4 whitespace-nowrap text-gray-400">-</td>
<td class="px-6 py-4 whitespace-nowrap font-bold text-red-700">278,760</td>
<td class="px-6 py-4 whitespace-nowrap text-red-600">-10.7%</td>
<td class="px-6 py-4 whitespace-nowrap"><i class="fas fa-arrow-down trend-down"></i></td>
</tr>
<tr class="bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap font-medium">August</td>
<td class="px-6 py-4 whitespace-nowrap">308,765</td>
<td class="px-6 py-4 whitespace-nowrap text-gray-400">-</td>
<td class="px-6 py-4 whitespace-nowrap font-bold text-red-700">282,890</td>
<td class="px-6 py-4 whitespace-nowrap text-red-600">-8.4%</td>
<td class="px-6 py-4 whitespace-nowrap"><i class="fas fa-arrow-down trend-down"></i></td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap font-medium">September</td>
<td class="px-6 py-4 whitespace-nowrap">295,432</td>
<td class="px-6 py-4 whitespace-nowrap text-gray-400">-</td>
<td class="px-6 py-4 whitespace-nowrap font-bold text-red-700">268,340</td>
<td class="px-6 py-4 whitespace-nowrap text-red-600">-9.2%</td>
<td class="px-6 py-4 whitespace-nowrap"><i class="fas fa-arrow-down trend-down"></i></td>
</tr>
<tr class="bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap font-medium">October</td>
<td class="px-6 py-4 whitespace-nowrap">301,234</td>
<td class="px-6 py-4 whitespace-nowrap text-gray-400">-</td>
<td class="px-6 py-4 whitespace-nowrap font-bold text-red-700">275,670</td>
<td class="px-6 py-4 whitespace-nowrap text-red-600">-8.5%</td>
<td class="px-6 py-4 whitespace-nowrap"><i class="fas fa-arrow-down trend-down"></i></td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap font-medium">November</td>
<td class="px-6 py-4 whitespace-nowrap">287,654</td>
<td class="px-6 py-4 whitespace-nowrap text-gray-400">-</td>
<td class="px-6 py-4 whitespace-nowrap font-bold text-red-700">258,450</td>
<td class="px-6 py-4 whitespace-nowrap text-red-600">-10.1%</td>
<td class="px-6 py-4 whitespace-nowrap"><i class="fas fa-arrow-down trend-down"></i></td>
</tr>
<tr class="bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap font-medium">December</td>
<td class="px-6 py-4 whitespace-nowrap">281,771</td>
<td class="px-6 py-4 whitespace-nowrap text-gray-400">-</td>
<td class="px-6 py-4 whitespace-nowrap font-bold text-red-700">252,890</td>
<td class="px-6 py-4 whitespace-nowrap text-red-600">-10.2%</td>
<td class="px-6 py-4 whitespace-nowrap"><i class="fas fa-arrow-down trend-down"></i></td>
</tr>
</tbody>
</table>
</div>
<div class="mt-4 text-right">
<a href="https://www.portoflosangeles.org/business/statistics/container-statistics" class="text-blue-600 hover:underline text-sm" target="_blank">Source: Port of Los Angeles Statistics</a>
</div>
</div>
<!-- Port News Section -->
<div class="bg-white rounded-lg shadow-md p-6">
<h2 class="text-xl font-semibold mb-6">Latest Port News & Market Updates</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<div class="news-card bg-white border border-gray-200 rounded-lg overflow-hidden transition-all duration-300">
<div class="p-5">
<div class="flex items-center mb-3">
<span class="bg-blue-100 text-blue-800 text-xs font-medium px-2.5 py-0.5 rounded">Los Angeles</span>
<span class="text-gray-500 text-sm ml-auto">Apr 28, 2024</span>
</div>
<h3 class="font-bold text-lg mb-2">April Volumes Down 12% From Forecast</h3>
<p class="text-gray-600 mb-4">The Port of Los Angeles processed 498,210 TEUs in April, marking a 12.4% decline from March and falling significantly below projections due to tariff impacts.</p>
<a href="#" class="text-blue-600 hover:underline font-medium inline-flex items-center">
Read more <i class="fas fa-arrow-right ml-1"></i>
</a>
</div>
</div>
<div class="news-card bg-white border border-gray-200 rounded-lg overflow-hidden transition-all duration-300">
<div class="p-5">
<div class="flex items-center mb-3">
<span class="bg-red-100 text-red-800 text-xs font-medium px-2.5 py-0.5 rounded">Market Alert</span>
<span class="text-gray-500 text-sm ml-auto">Apr 25, 2024</span>
</div>
<h3 class="font-bold text-lg mb-2">Tariff Shockwave Leads to Collapse in Ocean Container Bookings</h3>
<p class="text-gray-600 mb-4">New tariffs have caused a 30% drop in container bookings from Asia to US West Coast ports, with California ports seeing the steepest declines.</p>
<a href="https://www.freightwaves.com/news/tariff-shockwave-leads-to-collapse-in-ocean-container-bookings" class="text-blue-600 hover:underline font-medium inline-flex items-center" target="_blank">
Read on FreightWaves <i class="fas fa-external-link-alt ml-1 text-xs"></i>
</a>
</div>
</div>
<div class="news-card bg-white border border-gray-200 rounded-lg overflow-hidden transition-all duration-300">
<div class="p-5">
<div class="flex items-center mb-3">
<span class="bg-yellow-100 text-yellow-800 text-xs font-medium px-2.5 py-0.5 rounded">Forecast</span>
<span class="text-gray-500 text-sm ml-auto">Apr 22, 2024</span>
</div>
<h3 class="font-bold text-lg mb-2">2025 Import Forecast Revised Downward to -8.2%</h3>
<p class="text-gray-600 mb-4">Analysts slash growth projections for California ports through 2025, citing tariff impacts, reduced manufacturing output, and shifting trade patterns.</p>
<a href="#" class="text-blue-600 hover:underline font-medium inline-flex items-center">
Read more <i class="fas fa-arrow-right ml-1"></i>
</a>
</div>
</div>
</div>
</div>
</main>
<footer class="bg-gray-800 text-white py-8 mt-12">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div>
<h3 class="text-lg font-semibold mb-4">California Ports Container Tracker</h3>
<p class="text-gray-400">Tracking 20' shipping container volumes across major California ports with real-time data and analysis.</p>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Quick Links</h3>
<ul class="space-y-2">
<li><a href="https://www.portoflosangeles.org/business/statistics/container-statistics" class="text-gray-400 hover:text-white" target="_blank">Port of LA Statistics</a></li>
<li><a href="https://www.polb.com/business/port-statistics/" class="text-gray-400 hover:text-white" target="_blank">Port of Long Beach Stats</a></li>
<li><a href="https://www.portofoakland.com/port/seaport/statistics/" class="text-gray-400 hover:text-white" target="_blank">Port of Oakland Stats</a></li>
<li><a href="https://www.freightwaves.com/news" class="text-gray-400 hover:text-white" target="_blank">FreightWaves News</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Subscribe</h3>
<p class="text-gray-400 mb-4">Get monthly updates on container volumes</p>
<div class="flex">
<input type="email" placeholder="Your email" class="px-4 py-2 rounded-l-md text-gray-800 w-full">
<button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-r-md">
<i class="fas fa-paper-plane"></i>
</button>
</div>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
<p>© 2025 PLUS20C California Ports Container Tracker. All data sourced from official port statistics.</p>
</div>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
// Chart Data
const ctx = document.getElementById('containerChart').getContext('2d');
const containerChart = new Chart(ctx, {
type: 'bar',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
datasets: [
{
label: '2023',
data: [281654, 276543, 289765, 287654, 302456, 298765, 312345, 308765, 295432, 301234, 287654, 281771],
backgroundColor: 'rgba(156, 163, 175, 0.5)',
borderColor: 'rgba(156, 163, 175, 1)',
borderWidth: 1,
type: 'line',
pointBackgroundColor: 'rgba(156, 163, 175, 1)',
pointRadius: 4,
fill: false
},
{
label: '2024',
data: [296160, 291710, 299876, 312446, null, null, null, null, null, null, null, null],
backgroundColor: 'rgba(59, 130, 246, 0.7)',
borderColor: 'rgba(59, 130, 246, 1)',
borderWidth: 1
},
{
label: '2025 Forecast',
data: [276890, 270120, 285450, 275890, 265120, 260450, 278760, 282890, 268340, 275670, 258450, 252890],
backgroundColor: 'rgba(239, 68, 68, 0.3)',
borderColor: 'rgba(239, 68, 68, 1)',
borderWidth: 2,
borderDash: [5, 5],
type: 'line',
pointBackgroundColor: 'rgba(239, 68, 68, 1)',
pointRadius: 4,
fill: false
}
]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: false,
title: {
display: true,
text: '20\' Containers'
}
},
x: {
grid: {
display: false
}
}
},
plugins: {
legend: {
position: 'top',
},
tooltip: {
callbacks: {
label: function(context) {
let label = context.dataset.label || '';
if (label) {
label += ': ';
}
if (context.parsed.y !== null) {
label += new Intl.NumberFormat().format(context.parsed.y) + ' TEUs';
}
return label;
}
}
}
}
}
});
// Simulate data updates
function updateData() {
const now = new Date();
const hour = now.getHours();
// Simulate small fluctuations based on time of day
const fluctuation = Math.sin(hour / 24 * Math.PI) * 3000;
const currentValue = 312446 + Math.round(fluctuation);
// Update summary card
document.querySelector('.glow .text-2xl').textContent = '2,200,318';
// Update chart with new data point for current hour
if (containerChart.data.datasets[1].data[3] !== currentValue) {
containerChart.data.datasets[1].data[3] = currentValue;
containerChart.update();
}
// Calculate percentage change
const prevValue = 299876;
const change = ((currentValue - prevValue) / prevValue * 100).toFixed(1);
const changeElement = document.querySelector('.bg-red-100 + div .text-2xl');
if (change > 0) {
changeElement.textContent = `+${change}%`;
changeElement.className = 'text-2xl font-bold text-green-600';
document.querySelector('.trend-down').className = 'fas fa-arrow-up trend-up ml-2 text-xl';
} else {
changeElement.textContent = `${change}%`;
changeElement.className = 'text-2xl font-bold text-red-600';
document.querySelector('.trend-down').className = 'fas fa-arrow-down trend-down ml-2 text-xl';
}
}
// Update data every minute
setInterval(updateData, 60000);
updateData(); // Initial update
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=privateuserh/plus20-cvbeta" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |