Edit before sharing. X and supported device apps use this message. For Facebook or LinkedIn, copy it here and paste it into your post. These buttons share a link preview, not an uploaded media file. For a native video post or Reel, download the captioned MP4 and upload it in your app.
Class survey results dashboard
A STAT 101 student turns 124 dining-survey responses into weighted ratings, a would-return rate and filters by hall and meal.
ROLE: You are a data-visualisation tutor who builds correct dashboards in vanilla HTML, CSS and JavaScript. GOAL: Build a one-page interactive dashboard for my STAT 101 Intro Statistics project, campus dining satisfaction survey, that I can explain in class. CONTEXT: No libraries; shown on a projector and on phones. AUDIENCE: STAT 101 Intro Statistics classmates and instructor, new to this data. INPUTS: Data (CSV): Hall,Meal,Responses,Avg_Rating,Return_Yes; North,Breakfast,18,3.6,11; North,Lunch,25,4.1,19; North,Dinner,22,3.9,15; East,Breakfast,12,3.2,6; East,Lunch,20,3.8,13; East,Dinner,27,4.4,23 (; = new row; rating 1-5; Return_Yes = would return). Use only these rows; never invent or extrapolate values; show n/a if missing. STEPS: 1. Embed the rows as a JS array. 2. Compute 3-4 KPI cards in code, never hard-coded; weight averages by counts. 3. Two inline-SVG charts answering: Which meal has the best rating, weighted by responses? Which hall has the higher would-return rate? 4. Filters for dining hall and meal update every card, chart, table and takeaway. 5. Sortable table with a totals row. 6. 2-3 takeaways computed from the filtered rows. CONSTRAINTS: One self-contained HTML file, no external requests. Responsive 320-1440px, no horizontal scroll (table scrolls in its box). Labelled keyboard-usable controls; colour never the only cue. Zero-based bars with value labels. TONE: Friendly, clean, minimal; every label readable in 5 seconds. OUTPUT FORMAT: One complete HTML file in a code block, then how each KPI is calculated, with the full-data arithmetic. EXAMPLE: KPI card: Average rating 3.92 / 5 (weighted, n = 124). SELF-CHECK: Recompute each KPI by hand and match it; every filter changes every part; filtered totals sum to the full total; nothing loads online. FOLLOW-UP: Ask if I want another chart or a printable version; offer 3 talking points for my talk.
Make it yours
- Paste your own survey summary; keep counts per row so weighted averages are possible.
- Change the two questions to the comparisons your assignment asks for.
- Swap the filters for any category columns you have, such as year group or campus.
Follow-up prompts (3)
Add a grouped bar chart comparing North and East for each meal, and keep it in sync with the filters.
Copy this follow-upWrite three 20-second talking points for my class presentation based on the full dataset, citing the exact numbers.
Copy this follow-upAdd a short "Limitations" note: sample size per group and why small groups should be read with care.
Copy this follow-upPaste follow-ups into the same ChatterMate.Ai conversation so the first result stays in context.
