Menu

I published the beta of my bubble chart library. Help me break it!
📰

I published the beta of my bubble chart library. Help me break it!

DEV Community: react·Dada Ajibola Omotoyosi·6 days ago
#W2m8uWFz
#devtoreact#devto#dev#chart#bubble
Reading 0:00
15s threshold

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:…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.