Employee bar chart
✓ Published0🌍 Public
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 descriptionMIT Licensed