Fork of Fork of Hello VizHub
✓ Published0🌍 Public
A stacked bar chart visualizes deforestation across five regions for 2000, 2010, and 2020 using data embedded in the page. Each region displays three adjacent bars with distinct colors, and hovering reveals exact hectare values. Built with D3.js v6, the chart uses `d3.scaleBand` for x-axis positioning, `d3.scaleLinear` for y-axis scaling, and `d3.scaleOrdinal` for year-based coloring. A custom y-axis title labels the metric as "Damage to Nature," and a legend identifies the year colors.
AI-generated descriptionDeforestation Visualization
This project visualizes deforestation data from 2000 to 2020 using a stacked bar chart.
Data
The data is stored in data.csv and includes deforestation
metrics for different regions.
How to Run
- Open the
index.htmlfile in a web browser. - You will see a stacked bar chart showing deforestation from 2000 to 2020.
Technologies Used
- D3.js for data visualization
MIT Licensed