🌍 Public
Viewing a saved revision (read-only)
38d9f9214db24712be18c1ce1cb9941a
Employee bar chart
This example visualizes employee data using two side-by-side bar charts rendered as SVG. The left chart displays BMI values, while the right chart shows grouped comparisons of height and weight for each employee. It loads data from a CSV file using D3’s `csv` method and builds scales with `scaleBand` and `scaleLinear`. Axes are generated via `axisBottom` and `axisLeft`, with rounded bars and rotated labels. React manages the component state, while D3 handles the rendering, making the dataset’s categorical and numerical dimensions directly comparable across the two panels.
AI-generated descriptionA bar chart showing the top 10 most populous countries on Earth as of January 1st 2024.
Challenge
- Fork this viz and modify it to show your own data