home / skills / harborgrid-justin / lexiflow-premium / high-performance-data-visualization
/frontend/.github-skills/high-performance-data-visualization
This skill helps you render large data visualizations in React with Canvas/SVG/WebGL, delivering smooth zoom, pan, and 100k-point performance.
npx playbooks add skill harborgrid-justin/lexiflow-premium --skill high-performance-data-visualizationReview the files below or copy the command above to add this skill to your agents.
---
name: high-performance-data-visualization
description: Render large datasets (charts, graphs) using Canvas/SVG/WebGL within React.
---
# High-Performance Data Visualization
## Summary
Render large datasets (charts, graphs) using Canvas/SVG/WebGL within React.
## Key Capabilities
- Decouple render cycle from React.
- Implement zoom and pan interactions.
- Handle 100k+ data points.
## PhD-Level Challenges
- Maintain interactivity at scale.
- Map coordinate systems accurately.
- Implement responsive resizing.
## Acceptance Criteria
- Render a scatter plot with 10k points.
- Implement smooth zoom.
- Show FPS metrics.
This skill helps render large datasets (charts and graphs) inside React apps using Canvas, SVG, or WebGL for high performance. It focuses on decoupling the render cycle from React to keep UI responsive while handling 10k–100k+ points. Built for interactive, production-ready visualizations with zoom, pan, and performance metrics.
The implementation separates drawing from React's reconciliation by driving a dedicated render loop (requestAnimationFrame) that updates Canvas or WebGL buffers directly. Interaction handlers (zoom, pan, selection) compute transforms and feed them to the render pipeline without forcing full React re-renders. Optional SVG is used for lightweight overlays and accessibility, while FPS and timing metrics are measured and exposed for tuning.
Will this work inside a standard React app?
Yes. The skill integrates via refs and event handlers so React manages UI while the render loop draws to Canvas/WebGL independently.
Which renderer should I choose: Canvas, SVG, or WebGL?
Use WebGL for largest datasets and GPU acceleration, Canvas for medium datasets with complex 2D effects, and SVG only for small overlays or annotated elements.