Skip to content

Add a modern React wrapper around ChartGPU with full lifecycle management, typed events, and improved example performance#1

Merged
hunterg325 merged 1 commit intomainfrom
add-react-wrapper
Jan 19, 2026
Merged

Add a modern React wrapper around ChartGPU with full lifecycle management, typed events, and improved example performance#1
hunterg325 merged 1 commit intomainfrom
add-react-wrapper

Conversation

@hunterg325
Copy link
Copy Markdown
Collaborator

Add a modern React wrapper around ChartGPU with full lifecycle management, typed events, and improved example performance.[page:2]

  • Introduces a ChartGPU React component with async-safe initialization, ResizeObserver-based resizing, theme overrides, event handlers, zoom polling, and an imperative ref API (getChart, appendData, setOption).[page:2]
  • Adds dedicated wrapper types (ChartGPUProps, ChartGPUHandle, ChartInstance, ClickParams, MouseOverParams) and re-exports key ChartGPU types for a single, ergonomic import surface.[page:2]
  • Marks legacy ChartGPUChart and ChartGPUChartProps as deprecated while keeping them for backward compatibility.[page:2]
  • Refines the multi-series example data to use smaller datasets for better demo performance while preserving realistic trends.[page:2]

…e and clarity; update index.ts to enhance type exports and maintain backward compatibility with deprecated components.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant