<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Graduate Employability Dashboard</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-date-fns/dist/chartjs-adapter-date-fns.bundle.min.js"></script>
<style>
body { font-family: Arial, sans-serif; margin: 0; padding: 20px; background-color: #f4f4f4; }
.dashboard { max-width: 1400px; margin: 0 auto; }
h1 { text-align: center; color: #333; }
.section { background: white; margin: 20px 0; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.full-width { grid-column: span 2; }
canvas { max-height: 400px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 8px 16px; background: #007bff; color: white; border-radius: 20px; font-size: 14px; font-weight: bold; }
.tag:hover { background: #0056b3; cursor: pointer; }
.filter-select { margin-bottom: 20px; padding: 10px; font-size: 16px; }
@media (max-width: 768px) { .grid { grid-template-columns: 1fr; } .full-width { grid-column: span 1; } }
</style>
</head>
<body>
<div class="dashboard">
<h1>🚀 Graduate Employability Dashboard</h1>
<p style="text-align: center; color: #666;">Interactive insights into graduate skills, placements, salaries, and equity metrics. <em>(Sample data for demo)</em></p>
<!-- Skill Tags Section -->
<div class="section">
<h2>📊 Top Skill Tags</h2>
<div class="skill-tags" id="skillTags">
<!-- Populated by JS -->
</div>
</div>
<!-- Placement by Sector -->
<div class="section grid">
<div>
<h3>🎯 Placement by Sector</h3>
<canvas id="sectorChart"></canvas>
</div>
<div>
<h3>💰 Salary Bands</h3>
<canvas id="salaryChart"></canvas>
</div>
</div>
<!-- Equity Disaggregation -->
<div class="section full-width">
<h2>⚖️ Equity Disaggregation</h2>
<label>Filter by Demographic:
<select class="filter-select" id="equityFilter" onchange="updateEquityChart()">
<option value="gender">Gender</option>
<option value="ethnicity">Ethnicity</option>
<option value="disability">Disability Status</option>
</select>
</label>
<div class="grid">
<div>
<h4>Placement Rate by Group</h4>
<canvas id="equityPlacementChart"></canvas>
</div>
<div>
<h4>Avg Salary by Group (£k)</h4>
<canvas id="equitySalaryChart"></canvas>
</div>
</div>
<table style="width: 100%; margin-top: 20px; border-collapse: collapse;">
<thead><tr><th>Group</th><th>Placements</th><th>Avg Salary (£k)</th><th>Equity Gap vs Avg</th></tr></thead>
<tbody id="equityTable"></tbody>
</table>
</div>
</div>
<script>
// Sample Data
const skillsData = [
{ name: 'Python', count: 520 },
{ name: 'Data Analysis', count: 480 },
{ name: 'Leadership', count: 450 },
{ name: 'Machine Learning', count: 420 },
{ name: 'Project Management', count: 380 },
{ name: 'Communication', count: 350 },
{ name: 'SQL', count: 320 },
{ name: 'Cloud Computing', count: 300 },
{ name: 'Agile', count: 280 },
{ name: 'UX Design', count: 250 }
];
const sectorData = {
labels: ['Tech', 'Finance', 'Healthcare', 'Education', 'Consulting', 'Public Sector', 'Other'],
values: [32, 25, 15, 12, 8, 5, 3]
};
const salaryData = {
labels: ['< £40k', '£40-60k', '£60-80k', '£80-100k', '£100k+'],
values: [12, 28, 35, 18, 7]
};
const equityData = {
gender: {
labels: ['Male', 'Female', 'Non-Binary'],
placement: [58, 39, 3],
salary: [72, 65, 68]
},
ethnicity: {
labels: ['White', 'Asian', 'Black', 'Mixed', 'Other'],
placement: [62, 20, 8, 7, 3],
salary: [70, 68, 62, 66, 64]
},
disability: {
labels: ['No Disability', 'Disability'],
placement: [92, 8],
salary: [69, 63]
}
};
// Render Skill Tags
function renderSkills() {
const container = document.getElementById('skillTags');
skillsData.forEach(skill => {
const tag = document.createElement('div');
tag.className = 'tag';
tag.textContent = `${skill.name} (${skill.count})`;
tag.title = `Used by ${skill.count} graduates`;
container.appendChild(tag);
});
}
// Charts
const sectorCtx = document.getElementById('sectorChart').getContext('2d');
new Chart(sectorCtx, {
type: 'doughnut',
data: { labels: sectorData.labels, datasets: [{ data: sectorData.values, backgroundColor: ['#FF6384', '#36A2EB', '#FFCE56', '#4BC0C0', '#9966FF', '#FF9F40', '#C9CBCF'] }] },
options: { responsive: true, plugins: { title: { display: true, text: '% of Total Placements' } } }
});
const salaryCtx = document.getElementById('salaryChart').getContext('2d');
new Chart(salaryCtx, {
type: 'bar',
data: { labels: salaryData.labels, datasets: [{ label: 'Graduates (%)', data: salaryData.values, backgroundColor: '#36A2EB' }] },
options: { responsive: true, scales: { y: { beginAtZero: true, max: 50 } } }
});
let equityPlacementCtx, equitySalaryCtx;
function updateEquityChart() {
const filter = document.getElementById('equityFilter').value;
const data = equityData[filter];
const placementEl = document.getElementById('equityPlacementChart');
const salaryEl = document.getElementById('equitySalaryChart');
// Destroy old charts if exist
if (equityPlacementCtx) equityPlacementCtx.destroy();
if (equitySalaryCtx) equitySalaryCtx.destroy();
equityPlacementCtx = placementEl.getContext('2d');
new Chart(equityPlacementCtx, {
type: 'bar',
data: { labels: data.labels, datasets: [{ label: '% Placed', data: data.placement, backgroundColor: '#4BC0C0' }] },
options: { responsive: true, scales: { y: { beginAtZero: true, max: 100 } } }
});
equitySalaryCtx = salaryEl.getContext('2d');
new Chart(equitySalaryCtx, {
type: 'bar',
data: { labels: data.labels, datasets: [{ label: 'Avg Salary', data: data.salary, backgroundColor: '#FF6384' }] },
options: { responsive: true, scales: { y: { beginAtZero: true } } }
});
updateEquityTable(filter);
}
function updateEquityTable(filter) {
const data = equityData[filter];
const tbody = document.getElementById('equityTable');
tbody.innerHTML = '';
const avgPlacement = data.placement.reduce((a,b)=>a+b)/data.placement.length;
const avgSalary = data.salary.reduce((a,b)=>a+b)/data.salary.length;
data.labels.forEach((label, i) => {
const row = tbody.insertRow();
row.innerHTML = `
<td>${label}</td>
<td>${data.placement[i]}%</td>
<td>£${data.salary[i]}k</td>
<td>${((data.placement[i] - avgPlacement)/avgPlacement*100).toFixed(1)}% / ${((data.salary[i] - avgSalary)/avgSalary*100).toFixed(1)}%</td>
`;
});
}
// Init
renderSkills();
updateEquityChart();
</script>
</body>
</html>
How to Use This Dashboard
- Copy the code above into a new file named
graduate-dashboard.html.
- Open it in any web browser (Chrome, Firefox, etc.).
- Interact:
- Hover over skill tags for tooltips.
- Use the dropdown to filter equity charts/tables by Gender, Ethnicity, or Disability.
- Charts are responsive and mobile-friendly.
Key Features
- Skill Tags: Top 10 skills with graduate counts (cloud-style).
- Placement by Sector: Doughnut chart (% distribution).
- Salary Bands: Bar chart (% in each band).
- Equity Disaggregation: Filterable charts/tables showing placement rates and avg salaries, with equity gaps vs. average.
This is built with pure HTML/CSS/JS + Chart.js (no backend needed). Data is sample—replace with real data by editing the JS objects. Fully customizable! 🔧 If you need integrations (e.g., API data, exports), let me know.