Posts

Showing posts with the label developer-tools

How We Turned Data Visualization Into a Developer's Playground (APIs, Plugins, and Live Sandboxes)

Image
Data visualization used to feel like a finished product: you picked a chart type, wired up a dataset, and prayed nobody asked for "just one more interaction." We wanted the opposite. We wanted a place where developers could experiment, remix, and extend visuals the same way they do with code-fast feedback, clear interfaces, and zero ceremony. So we rebuilt our visualization stack as a playground : everything scriptable, composable, and safe to break. We treated every chart like a small app (not an image) The first shift was mindset: a chart isn't the output-it's a runtime. That means it needs state, events, and predictable inputs/outputs. We standardized a tiny "viz contract" that every component follows: Inputs : `data`, `schema`, `theme`, `options` Outputs : emitted events like `point:click`, `range:change`, `legend:toggle` Lifecycle : `mount()`, `update()`, `destroy()` Example: instead of hard-coding a tooltip, we exposed an event stream: js viz.on('...