GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

06Measuring Whether a Label Fits Inside

The label width is estimated as the character count times a glyph width. If it fits inside the diameter margin it stays inside, if not it keeps only the first few characters with no ellipsis, and if even that fails the label moves outside on a leader line. Outside labels are nudged up and down so small circles do not make them collide.

Best forA label placement rule that keeps names readable even on small bubbles

LABEL_PADglyphWchordW
Measuring Whether a Label Fits Inside
Open in a new tab

06 Measuring Whether a Label Fits Inside — Measured area 13.956% · moving frames 19/23Original by GODRICH · SCSS and React ship in the zip · Bubble Chart: 9 Canvas Scenes

The post this demo lives in

Bubble Chart: 9 Canvas Scenes - preview of all 9 demosBubble Chart: 9 Canvas ScenesHow does a bubble chart turn one row of data into a circle? 01 uses the square root of the value as radius, 02 pushes ov See all demos in this post

If you like this effect - similar demos