D3 Example
✓ Published1🌍 Public
This example shows a bar chart comparing the population of five religions, using SVG rendering within a React framework. The bars are filled with distinct texture patterns—hexagons, crosses, caps, woven, and waves—generated by the textures library, with each religion assigned a unique pattern via an ordinal color scale. The code uses D3 v3 APIs including `d3.scale.ordinal`, `d3.svg.axis`, and `d3.csv` to load and visualize the `religionWorldTotals.csv` data, with axes formatted using a custom SI tick formatter that converts "G" to "B" for billions.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed