D3.chart Likert (even-point) example
The example displays a four-point Likert scale survey visualization using d3.chart and d3.v3, presenting five survey items as horizontal stacked bars with colored segments for each response category. Each bar shows percentage distributions across four response options (e.g., “Strongly disagree” to “Agree”), with labels aligned to the left or right to suggest forced-choice responses. The chart uses SVG rendering with animated transitions when the “Randomize” button is clicked, which updates percentages via a normalization algorithm that scales four random values to total 100. The visualization builds on Mike Bostock’s bullet chart, with custom chart classes (`LikertEven`, `LikertEvens`) managing layers for backgrounds, grid lines, and bar segments. Axis labels and tick formatting show absolute values, while the final row demonstrates the scale’s semantics with dimension descriptions.