Releases: ChartGPU/chartgpu-react
Releases · ChartGPU/chartgpu-react
Version upgrade to ChartGPU v0.2.3
What's Changed
- Version upgrade to ChartGPU v0.2.3 by @hunterg325 in #5
- Enhance README with improved formatting and additional documentation … by @hunterg325 in #6
- removed unused files by @hunterg325 in #7
Full Changelog: v0.1.0...v0.1.1
v0.1.0 - Initial Release
chartgpu-react v0.1.0
React wrapper for ChartGPU.
Features
<ChartGPU />component — Declarative chart rendering- Lifecycle management — Auto-init, update on prop change, dispose on unmount
- Ref forwarding — Access chart instance for imperative methods
- Event handlers —
onReady,onClick,onZoomChange - Responsive — ResizeObserver integration
- Hooks —
useChartGPU,useConnectedCharts
Installation
npm install chartgpu-reactIncludes chartgpu as a dependency—no need to install separately.
Quick Start
import { ChartGPU } from 'chartgpu-react';
function App() {
return (
<ChartGPU
options={{
series: [{ type: 'line', data: [[0, 1], [1, 3], [2, 2]] }],
}}
style={{ width: '100%', height: 400 }}
/>
);
}Requirements
- React 18+
- WebGPU-capable browser