Skip to content

Releases: ChartGPU/chartgpu-react

v0.1.0 - Initial Release

20 Jan 22:23
fed8baf

Choose a tag to compare

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 handlersonReady, onClick, onZoomChange
  • Responsive — ResizeObserver integration
  • HooksuseChartGPU, useConnectedCharts

Installation

npm install chartgpu-react

Includes 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

Links