In January I posted a crypto bubble chart I'd built from scratch on Threads. Few people saw it.
Ten months, one redesign and a lot of tests later, it's a library: OrbFlow . It's a bubble chart for the web where the bubbles act like bubbles. They rise in when the chart scrolls into view, float, push each other apart, and pop when you tap one.
Today the beta is on npm, and I'd like you to try to break it.
Try it in two minutes
npm i orbflow@beta
React (18 or 19, works with Next.js):
import { OrbChart } from "orbflow/react";
export default function App() { return ( <div style={{ width: 600, height: 400 }}> <OrbChart data={[ { id: "a", label: "Apples", value: 40 }, { id: "b", label: "Pears", value: 25 }, { id: "c", label: "Plums", value: 10 }, ]} onOrbClick={(orb) => console.log(orb.label)} /> </div> ); }
Enter fullscreen mode
Exit fullscreen mode
Plain JavaScript:
import { OrbChart } from "orbflow";
const chart = new OrbChart("#chart"); chart.setData([ { id: "a", label: "Apples", value: 40 }, { id:…