Stacked Area Chart
This stacked area chart visualizes the changing market share of web browsers over time, derived from Clicky Web Analytics data. It displays the proportions of the "Bottom 99 percent" and "Top 1 percent" income groups across the years, using a categorical color scheme. The visualization loads data from a CSV file with `d3.csv` and parses years via `d3.timeParse`. D3 scales (`d3.scaleTime`, `d3.scaleLinear`, `d3.scaleOrdinal`) and shapes (`d3.stack`, `d3.area`) compute the stacked layers, while `d3.axisBottom` and `d3.axisLeft` render the axes on an SVG canvas.
AI-generated descriptionThis stacked area chart is constructed from a TSV file storing the market share of several popular web browsers over the last year. Data is from Clicky Web Analytics. The chart employs conventional margins and a number of D3 features:
- d3.tsv - load and parse data
- d3.timeFormat - parse dates
- d3.format - format percentages
- d3.scaleTime - x-position encoding
- d3.scaleLinear - y-position encoding
- d3.scaleOrdinal, d3.schemeCategory20 - color encoding
- d3.extent - compute domains
- d3.stack - compute stacked y-positions
- d3.axisBottom, d3.axisLeft - display axes
- d3.area - display area shape
forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/3885211'>Stacked Area Chart</a>