loreal_data transitioning
✓ Published0🌍 Public
This example demonstrates how demographic survey data can be interactively explored by switching between different categorical groupings. The bar chart displays the percentage distribution of respondents across gender, generation, province, or age group, with the selected category updating the visualization. Built with D3 v5, the code loads data from a CSV file and uses `d3.nest()` with `rollup` functions to aggregate counts into percentages. The SVG rendering employs `scaleLinear` and `scaleBand` for the axes, with buttons triggering the data swap and horizontal bars displaying percentage labels.
AI-generated descriptionTis report shows the possibiltiy of using different data set at the same time and customizing the datavis by suing a single DOM
MIT Licensed