Vis update
✓ Published2🌍 Public
Llars-ruijs
Last edited Nov 12, 2020
Created on Nov 11, 2020
This example shows a bar chart of cities by number of P+R locations, and a pie chart of the capacity distribution for the selected city. The bar chart is drawn with SVG using `d3.scaleBand` and `d3.scaleLinear`, with bars colored in `dodgerblue`. Clicking a bar triggers `updatePie`, which filters sample data and calls `drawPie`. The pie chart uses `d3.pie` and `d3.arc`, with slices colored via `d3.schemeTableau10` and labels showing capacities. The code uses D3 v6 and dummy data based on cleaned RDW data.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed