Stacked Density and Quantile Graphs
Two paired charts compare product groups: a stacked density graph on the left and its derived quantile graph on the right, where the density is divided into equal-area segments resized to equal width. This reveals which segments contribute more to the tail than to the middle, a distinction harder to see in the density view. Hovering a legend item filters the display to a single segment. The visualization is built with d3.v3 APIs including `d3.svg.area`, `d3.layout.stack`, and `d3.scale.linear`, rendering to SVG with animation, using data from the provided `data.js` file.
AI-generated descriptionThe graph on the left is the density function. The graph on the right is obtained by dividing the density function horizontally (along the horizontal axis) so that all pieces have equal area and then resizing to have equal width (and hence equal height).
The right side graph is useful to see if a particular segment has higher contribtuion to the tail than to the middle which could be harder to see in the denisty graph.
Hovering over the legend will update the graphs to show only the selected segment.