Frontend Platform
One chart platform, charts that stay different
A reusable React and D3 platform for planning charts. Hover, tooltips, range selection, legends, zoom and history are built once and shared; every chart keeps its own shapes and its own calculations.
- My role
- I built the shared platform on existing D3 primitives: its composition model, interaction layer, legends and range history.
- Context
- Orchestr8May 2025 — Present
- Focus
- React, TypeScript, D3
Problem
Planning charts look nothing alike: stock projected against buffer zones, machine load, demand, order counts. Yet each one needed the same hover, tooltip, legend, zoom and history, and each was building them again.
Mechanism
Three charts, one way of behaving
Move across any one of them. The pointer, the reading at that moment and the legend belong to the platform, so all three answer together. The shapes belong to each chart.
Not one universal chart
The obvious move was a single configurable chart component. Planning charts differ too much for that: different data shapes, stacking rules, boundaries and business overlays, and one component would have become a wall of exceptions. So the platform owns only what repeats, and each chart still draws itself with D3.
Solution
What the platform owns
Scales, axes and dimensions
The measured frame every chart is drawn in.
Pointer, tooltip and range selection
One overlay that knows which period is under the pointer and what to show for it.
Legends
Show and hide series, drag, dock to a corner, and remember the choice.
Zoom and history
Select a range to zoom, step back and forward through earlier ranges, reset.
Typed configuration
A chart declares its series once; legend, tooltip and colours follow from that.
Scope
What was there, and what I added
Orchestr8 already had useful low-level D3 building blocks. I kept them and built the platform around them: the composition model, the shared interaction overlay, the richer legends and the explicit range history. The supply-network map is a separate system with its own rendering stack; it is not one of these charts.
Outcome
A new chart starts from shared behaviour and spends its effort on what makes it different. The platform is used across Orchestr8's planning and analytics screens.