Automatic Text Sizing
✓ Published0🌍 Public
663anp3ca
Last edited Sep 20, 2018
Created on Sep 20, 2018
A circle-packing diagram shows the hierarchical Flare dataset as leaf nodes only, with each circle’s size proportional to its value. When a node is hovered, its circle turns orange. Text labels are automatically resized to fit within each circle using D3’s `getComputedTextLength` method, scaling the font size so that longer names shrink to remain readable. The visualization uses `d3.layout.pack` and SVG rendering in D3 v3, with data loaded from a JSON file.
AI-generated descriptionforked from <a href='http://bl.ocks.org/rlugojr/'>rlugojr</a>'s block: <a href='http://bl.ocks.org/rlugojr/3a8276b79beedae0cca8ae400ac1ee99'>Automatic Text Sizing</a>
gpl-3.0 Licensed