Skip to content
All effects

3D infographic

Numbers turned into a small 3D scene that builds itself and answers when you point at it.

3D and motion

This is the real effect. Scroll or move your mouse inside the frame to try it.

The prompt

Turn [the numbers or data I point to] into a 3D infographic with three.js: a small 3D chart that builds itself when it comes into view and shows the details when you point at it. Scene: one bar (or column) per data point on a thin base plate, built from boxes, with soft studio lighting, a light environment map for subtle reflections and soft shadows on the plate. Only use colours from my palette, with the highest value highlighted. The camera looks at the chart from a slightly raised three-quarter angle. Behaviour: when the chart comes into view, the bars grow from zero to their value one after another with a soft ease-out. Pointing at a bar (raycaster) lifts it a little, highlights it and shows its label and value in an HTML tooltip that follows the bar (project the top of the bar to screen coordinates every frame). The whole chart turns a few degrees with the mouse. The labels and values stay in HTML (also as a hidden table for screen readers), never baked into the 3D. Only render while visible, cap the device pixel ratio at 2. With prefers-reduced-motion, show the finished chart without growing. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.

What it is

Your numbers as a small 3D object. The bars grow when you scroll to them, and when you point at one it lifts up and tells you its value.

When it works

For the few numbers that tell your story: growth, results, a comparison with the old way. A flat chart gets skimmed. A chart that builds itself and reacts to your mouse gets looked at.

Get it right

  • Keep the labels and values in HTML, so they stay sharp and readable for everyone.
  • One message per chart. If it needs a legend with five colours, it is too much.
  • Highlight the number that matters.

Also called

  • 3D bar chart
  • Animated 3D chart
  • Interactive data visualisation
  • 3D data graphic

More effects.

All effects