Fork of Fork of React & D3 Vibecoding Starter
This interactive dashboard visualizes the market capitalization of top Chinese companies using a bar chart built with React and D3.js v7. The visualization uses `d3.scaleBand` and `d3.scaleLinear` to map company names and values, with `d3.scaleOrdinal` for sector-based color coding. Users can hover over bars to see detailed tooltips, click bars to highlight companies, and filter by sector through an interactive legend. A summary panel displays market overview statistics, computed dynamically from the loaded CSV data.
AI-generated descriptionChinese Companies Dashboard
This dashboard visualizes the top Chinese companies by market capitalization, offering an interactive way to explore market data.
Features
- Bar chart showing market capitalization of top Chinese companies
- Color-coded sectors for easy identification
- Interactive tooltips with detailed company information
- Ability to filter by sector
- Summary panel with market overview
- Responsive design that adapts to different screen sizes
Usage
- Hover over bars to see detailed company information
- Click on a bar to highlight a specific company
- Click on a sector in the legend to filter companies by sector
- View summary statistics in the bottom-right panel
Data
The visualization uses data from data.csv which includes:
- Company name
- Market capitalization (in billions USD)
- Sector
- IPO year
- IPO value
- Growth since IPO
Implementation Details
Built with React and D3.js, following a component-based architecture with clean separation of concerns.