Skip to main content
100%

Deviation Chart

✓ Published0🌍 Public
MMujkić Elvir
Last edited Dec 6, 2020
Created on Dec 6, 2020

This deviation chart visualizes the stacked bar totals for eight animals across four numeric categories (A–D), with each animal’s bar segmented by group (Domestic, Pest, Africa, Marine). Built with D3 v5 and rendered as SVG, it uses `d3.stack()` to compute the series, `d3.scaleBand` for the animal axis, and `d3.scaleLinear` for the total-value range. Bars are colored via a custom ordinal scale mapping each group to distinct per-segment color schemes, with axes labeled from the CSV data.

AI-generated description

Simplified Stack bar for colouring bars by different groups http://bl.ocks.org/JimMaltby/844ca313589e488b249b86ead0d621a9

MIT Licensed

Similar vizzes