Fancensus specialises in data collection, processing, and display. This project visualises data from https://www.fancensus.com/test/dataset1.json with tables and charts.
- Table grouped by country with drill-down functionality
- Table grouped by product with activity count
- Graph visualization of activities by country
- Additional custom visualizations
- Node.js (version 18 or higher)
- npm (version 9 or higher)
- Clone the repository:
git clone https://github.com/ai-ross/fancensus.git cd frontend - Install dependencies:
npm install
npm run dev- Visit:
http://localhost:5174
npm run build
npm run preview- Visit:
http://localhost:4173
npm test- Displays error messages on failed dataset loads.
- Gracefully handles unexpected inputs.
📂 src
┣ 📂components // Reusable Vue components
┣ 📂composables // Data transformation logic
┣ 📂views // Main page views
┣ 📂services // API calls
┗ 📂tests // Unit and component tests
- Vue 3 with Composition API
- TailwindCSS for styling
- Chart.js for visualizations
- Vitest for testing
- ESLint & Prettier for formatting
- TypeScript for type safety
- Ensure the dataset URL is accessible.