Treemap of MBTI statistics
A treemap displays Myers-Briggs Type Indicator (MBTI) distribution statistics, with each leaf node labeled by its four-letter personality type and sized by frequency. Radio buttons let viewers switch between male, female, and total population values, triggering a 1.5-second animated transition that re-sizes and re-positions the rectangles. The code uses d3.layout.treemap with a sticky layout, d3.scale.category20c for coloring, and transition() callbacks to animate changes. Data comes from a local MBTI_3.json file, sourced from mfstats.com statistics.
AI-generated descriptionThe Myers-Briggs Type Indicator (MBTI) assesses personality attributes, using a set of 16 bins (eg, INTJ). The bins are not equally populated, either in the general population or when gender is taken into account. This page shows some distribution statistics, using a Treemap.