Skip to main content
100%

D3.chart Likert (even-point) example

✓ Published0🌍 Public
CCodeXmonk
Last edited Aug 22, 2013
Created on Aug 18, 2013

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.

AI-generated description

A chart for 4-point Likert scale

A d3.chart.js answer to Ann K. Emery's Dataviz Challenge #5

( feedback is welcomed: @CodeXmonk )

Order is changed

I changed the sequence of colors. Why i did it?

It's not based on any research data it is only my humble opinion...

I've been administering the so called Szondi test for years now. It is a projective psychological test designed by Leopold Szondi in the 30's of the XX century. During the test I ask people to pick out some photograph from a group of pictures according to whether they are attracted or repulsed by that very image. I don't ask them what exactly to do with the image I just ask them to put it aside. Positive choice is put to the right and the negative one to the left by the great majority of the people I examined...

So I think our positive answers or cues should be put on the right side...

What about labels?

Labels are not centered... It is a four-point scale so we usually call it a "forced choice" method. When evenly scaled Likert is used I think the answers are pushed towards the extremities... That's what I wanted to symbolize with the left/right aligned labels. ( and doing this way there was no any need to do extra calculation either...!-)

Similar vizzes