File size: 13,069 Bytes
8ef859b | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Locations & Stages Analysis</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://unpkg.com/vanta@latest/dist/vanta.net.min.js"></script>
<style>
.chart-container {
position: relative;
height: 70vh;
width: 100%;
}
.location-card {
transition: all 0.3s ease;
}
.location-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
#map {
height: 500px;
width: 100%;
border-radius: 0.75rem;
}
</style>
</head>
<body class="bg-gray-50">
<div id="vanta-bg" class="fixed inset-0 -z-10"></div>
<div class="container mx-auto px-4 py-12 relative">
<header class="text-center mb-16" data-aos="fade-down">
<h1 class="text-4xl font-bold text-gray-800 mb-4">Locations & Stage Analysis</h1>
<p class="text-xl text-gray-600 max-w-2xl mx-auto">Visualizing candidate stages by geographic distribution</p>
</header>
<section class="mb-20">
<div class="bg-white rounded-xl shadow-lg p-6" data-aos="fade-up">
<h2 class="text-2xl font-semibold text-gray-800 mb-6">Locations by Stage</h2>
<div class="chart-container">
<canvas id="locationStageChart"></canvas>
</div>
</div>
</section>
<section class="mb-20">
<div class="bg-white rounded-xl shadow-lg p-6" data-aos="fade-up">
<h2 class="text-2xl font-semibold text-gray-800 mb-6">Geographic Distribution</h2>
<div id="map" class="bg-gray-100"></div>
<div class="mt-4 grid grid-cols-2 md:grid-cols-4 gap-4">
<div class="bg-blue-100 p-3 rounded-lg flex items-center">
<div class="w-3 h-3 bg-blue-500 rounded-full mr-2"></div>
<span>MN Locations (32)</span>
</div>
<div class="bg-red-100 p-3 rounded-lg flex items-center">
<div class="w-3 h-3 bg-red-500 rounded-full mr-2"></div>
<span>KS Locations (16)</span>
</div>
</div>
</div>
</section>
<section class="mb-20">
<h2 class="text-2xl font-semibold text-gray-800 mb-6 text-center" data-aos="fade-up">Top Locations by Stage</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<div class="location-card bg-white rounded-lg shadow-md p-6" data-aos="flip-left">
<div class="flex items-center mb-4">
<i data-feather="map-pin" class="text-red-500 mr-2"></i>
<h3 class="text-lg font-semibold text-gray-800">Minneapolis, MN</h3>
</div>
<p class="text-gray-600 mb-2">Not Qualified: 5</p>
<p class="text-gray-600 mb-2">Unable to Contact: 4</p>
<p class="text-gray-600">Do Not Consider: 3</p>
</div>
<div class="location-card bg-white rounded-lg shadow-md p-6" data-aos="flip-left" data-aos-delay="100">
<div class="flex items-center mb-4">
<i data-feather="map-pin" class="text-blue-500 mr-2"></i>
<h3 class="text-lg font-semibold text-gray-800">Topeka, KS</h3>
</div>
<p class="text-gray-600 mb-2">Not Qualified: 6</p>
<p class="text-gray-600 mb-2">Never Answered: 2</p>
<p class="text-gray-600">Do Not Consider: 1</p>
</div>
<div class="location-card bg-white rounded-lg shadow-md p-6" data-aos="flip-left" data-aos-delay="200">
<div class="flex items-center mb-4">
<i data-feather="map-pin" class="text-green-500 mr-2"></i>
<h3 class="text-lg font-semibold text-gray-800">Dodge City, KS</h3>
</div>
<p class="text-gray-600 mb-2">Not Qualified: 4</p>
<p class="text-gray-600 mb-2">Do Not Consider: 2</p>
<p class="text-gray-600">Unable to Contact: 1</p>
</div>
<div class="location-card bg-white rounded-lg shadow-md p-6" data-aos="flip-left" data-aos-delay="300">
<div class="flex items-center mb-4">
<i data-feather="map-pin" class="text-yellow-500 mr-2"></i>
<h3 class="text-lg font-semibold text-gray-800">Saint Paul, MN</h3>
</div>
<p class="text-gray-600 mb-2">Never Answered: 3</p>
<p class="text-gray-600 mb-2">Withdrew Application: 2</p>
<p class="text-gray-600">Not Qualified: 2</p>
</div>
<div class="location-card bg-white rounded-lg shadow-md p-6" data-aos="flip-left" data-aos-delay="400">
<div class="flex items-center mb-4">
<i data-feather="map-pin" class="text-purple-500 mr-2"></i>
<h3 class="text-lg font-semibold text-gray-800">Wichita, KS</h3>
</div>
<p class="text-gray-600 mb-2">Not Qualified: 3</p>
<p class="text-gray-600 mb-2">Accepted Another Position: 1</p>
<p class="text-gray-600">Unable to Contact: 1</p>
</div>
<div class="location-card bg-white rounded-lg shadow-md p-6" data-aos="flip-left" data-aos-delay="500">
<div class="flex items-center mb-4">
<i data-feather="map-pin" class="text-pink-500 mr-2"></i>
<h3 class="text-lg font-semibold text-gray-800">Rochester, MN</h3>
</div>
<p class="text-gray-600 mb-2">Withdrew Application: 1</p>
<p class="text-gray-600 mb-2">Unable to Contact: 1</p>
<p class="text-gray-600">Do Not Consider: 1</p>
</div>
</div>
</section>
<section class="bg-white rounded-xl shadow-lg p-6" data-aos="fade-up">
<h2 class="text-2xl font-semibold text-gray-800 mb-6">Stage Distribution by State</h2>
<div class="chart-container">
<canvas id="stateStageChart"></canvas>
</div>
</section>
</div>
<script>
// Vanta.js background
VANTA.NET({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x3b82f6,
backgroundColor: 0xf8fafc,
points: 10.00,
maxDistance: 20.00,
spacing: 15.00
});
// Initialize AOS
AOS.init({
duration: 800,
easing: 'ease-in-out',
once: true
});
// Initialize feather icons
feather.replace();
// Chart data
const locationStageData = {
labels: ['Minneapolis', 'Topeka', 'Dodge City', 'Saint Paul', 'Wichita', 'Rochester'],
datasets: [
{
label: 'Not Qualified',
data: [5, 6, 4, 2, 3, 0],
backgroundColor: 'rgba(239, 68, 68, 0.7)',
borderColor: 'rgba(239, 68, 68, 1)',
borderWidth: 1
},
{
label: 'Unable to Contact',
data: [4, 0, 1, 1, 1, 1],
backgroundColor: 'rgba(59, 130, 246, 0.7)',
borderColor: 'rgba(59, 130, 246, 1)',
borderWidth: 1
},
{
label: 'Do Not Consider',
data: [3, 1, 2, 0, 0, 1],
backgroundColor: 'rgba(16, 185, 129, 0.7)',
borderColor: 'rgba(16, 185, 129, 1)',
borderWidth: 1
},
{
label: 'Never Answered',
data: [2, 2, 0, 3, 0, 0],
backgroundColor: 'rgba(234, 179, 8, 0.7)',
borderColor: 'rgba(234, 179, 8, 1)',
borderWidth: 1
}
]
};
const stateStageData = {
labels: ['MN', 'KS'],
datasets: [
{
label: 'Not Qualified',
data: [9, 12],
backgroundColor: 'rgba(239, 68, 68, 0.7)',
borderColor: 'rgba(239, 68, 68, 1)',
borderWidth: 1
},
{
label: 'Unable to Contact',
data: [6, 5],
backgroundColor: 'rgba(59, 130, 246, 0.7)',
borderColor: 'rgba(59, 130, 246, 1)',
borderWidth: 1
},
{
label: 'Do Not Consider',
data: [3, 4],
backgroundColor: 'rgba(16, 185, 129, 0.7)',
borderColor: 'rgba(16, 185, 129, 1)',
borderWidth: 1
},
{
label: 'Never Answered',
data: [5, 3],
backgroundColor: 'rgba(234, 179, 8, 0.7)',
borderColor: 'rgba(234, 179, 8, 1)',
borderWidth: 1
}
]
};
// Initialize charts
document.addEventListener('DOMContentLoaded', function() {
// Location stage chart
const locationStageCtx = document.getElementById('locationStageChart').getContext('2d');
new Chart(locationStageCtx, {
type: 'bar',
data: locationStageData,
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
x: {
stacked: true,
},
y: {
stacked: true,
beginAtZero: true
}
},
plugins: {
tooltip: {
mode: 'index',
intersect: false
},
legend: {
position: 'top',
}
},
animation: {
duration: 1000
}
}
});
// State stage chart
const stateStageCtx = document.getElementById('stateStageChart').getContext('2d');
new Chart(stateStageCtx, {
type: 'bar',
data: stateStageData,
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
x: {
stacked: true,
},
y: {
stacked: true,
beginAtZero: true
}
},
plugins: {
tooltip: {
mode: 'index',
intersect: false
},
legend: {
position: 'top',
}
},
animation: {
duration: 1000
}
}
});
// Initialize map (placeholder for actual map implementation)
// In a real implementation, you would use Leaflet or Google Maps API
document.getElementById('map').innerHTML =
'<div class="h-full flex items-center justify-center bg-gray-200 rounded-lg">' +
'<p class="text-gray-600">Interactive map would display here showing locations and stage distribution</p>' +
'</div>';
});
</script>
</body>
</html> |