{"id":40750082,"url":"https://github.com/chartgpu/chartgpu","last_synced_at":"2026-02-26T02:00:01.035Z","repository":{"id":333701901,"uuid":"1136039994","full_name":"ChartGPU/ChartGPU","owner":"ChartGPU","description":"Beautiful, open source, WebGPU-based charting library","archived":false,"fork":false,"pushed_at":"2026-02-16T01:58:40.000Z","size":15093,"stargazers_count":2651,"open_issues_count":4,"forks_count":67,"subscribers_count":12,"default_branch":"main","last_synced_at":"2026-02-16T08:58:59.069Z","etag":null,"topics":["awesome-list","candlestick-chart","chart","chart-library","charting-library","data-analysis","data-visualization","financial-charts","gpu","heatmap","high-performance","javascript","open-source","scatter-plot","typescript","webgpu"],"latest_commit_sha":null,"homepage":"https://chartgpu.github.io/ChartGPU/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChartGPU.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-17T00:52:00.000Z","updated_at":"2026-02-16T08:31:39.000Z","dependencies_parsed_at":"2026-02-01T23:01:05.212Z","dependency_job_id":null,"html_url":"https://github.com/ChartGPU/ChartGPU","commit_stats":null,"previous_names":["chartgpu/chartgpu"],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/ChartGPU/ChartGPU","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChartGPU%2FChartGPU","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChartGPU%2FChartGPU/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChartGPU%2FChartGPU/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChartGPU%2FChartGPU/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChartGPU","download_url":"https://codeload.github.com/ChartGPU/ChartGPU/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChartGPU%2FChartGPU/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29845133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T22:37:40.667Z","status":"ssl_error","status_checked_at":"2026-02-25T22:37:25.960Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["awesome-list","candlestick-chart","chart","chart-library","charting-library","data-analysis","data-visualization","financial-charts","gpu","heatmap","high-performance","javascript","open-source","scatter-plot","typescript","webgpu"],"created_at":"2026-01-21T16:01:02.200Z","updated_at":"2026-02-26T02:00:01.008Z","avatar_url":"https://github.com/ChartGPU.png","language":"TypeScript","funding_links":[],"categories":["Libraries"],"sub_categories":["Safari"],"readme":"\u003cp align=\"center\" style=\"margin-bottom:0; margin-top:20px;\"\u003e\n  \u003cimg src=\"docs/assets/chartgpu.png\" alt=\"ChartGPU\" width=\"400\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\" style=\"margin-top:-18px;\"\u003e\n  The fastest open-source charting library — 50M points at 60 FPS.\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\n[\u003cimg src=\"docs/assets/powered-by-webgpu.svg\" alt=\"Powered by WebGPU\" height=\"28\" /\u003e](https://forthebadge.com)\n[![GitHub Stars](https://img.shields.io/github/stars/ChartGPU/chartgpu?style=for-the-badge\u0026color=yellow)](https://github.com/chartgpu/chartgpu)\n[![CI Status](https://img.shields.io/github/actions/workflow/status/chartgpu/chartgpu/tests.yml?branch=main\u0026style=for-the-badge\u0026label=Tests)](https://github.com/chartgpu/chartgpu/actions/workflows/tests.yml)\n[![npm version](https://img.shields.io/npm/v/chartgpu?style=for-the-badge\u0026color=blue)](https://www.npmjs.com/package/chartgpu)\n[![NPM Downloads](https://img.shields.io/npm/dm/chartgpu?style=for-the-badge\u0026color=%2368cc49)](https://www.npmjs.com/package/chartgpu)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](https://github.com/chartgpu/chartgpu/blob/main/LICENSE)\n[![Live Demo](https://img.shields.io/badge/demo-live-brightgreen?style=for-the-badge)](https://chartgpu.github.io/ChartGPU/examples/)\n[![Examples](https://img.shields.io/badge/Examples-Code%20Samples-blue?style=for-the-badge)](https://github.com/chartgpu/chartgpu/tree/main/examples)\n[![Documentation](https://img.shields.io/badge/Documentation-Getting%20Started-blue?style=for-the-badge)](https://github.com/chartgpu/chartgpu/blob/main/docs/GETTING_STARTED.md)\n\n[\u003cimg src=\"https://hackerbadge.now.sh/api?id=46706528\" alt=\"Featured on Hacker News\" height=\"30\" /\u003e](https://news.ycombinator.com/item?id=46706528)\n\n[\u003cimg src=\"https://awesome.re/mentioned-badge.svg\" alt=\"Featured in Awesome WebGPU\" style=\"height: 30px;\" /\u003e](https://github.com/mikbry/awesome-webgpu)\n\n\n\u003c/div\u003e\n\nChartGPU is a TypeScript charting library built on WebGPU for smooth, interactive rendering—especially when you have lots of data.\n\n## Demo\n\n![ChartGPU demo](https://raw.githubusercontent.com/chartgpu/chartgpu/main/docs/assets/chart-gpu-demo.gif)\n\n### Streaming Multi-Chart Dashboard\n\nFive live charts. Annotations ticking in real time. Latency percentiles, throughput, error rates, resource utilization — all streaming simultaneously at 60 FPS on a single shared `GPUDevice`. This is what ChartGPU was built for.\n\nWant to build your own? Check out the [Multi-Chart Dashboard Cookbook](docs/guides/multichart-dashboard-cookbook.md) for hands-on recipes and tips to get started!\n\n![Streaming multi-chart dashboard example](docs/assets/streaming-dashboard-example.png)\n\n### 35M points (benchmark)\n\n35,000,000 points rendered at ~72 FPS (benchmark mode).\n\n![35 million point benchmark at 72 FPS](docs/assets/35-million-ultimate-benchmark-example.png)\n\n## Quick Start\n\n```ts\nimport { ChartGPU } from 'chartgpu';\nconst container = document.getElementById('chart')!;\nawait ChartGPU.create(container, {\n  series: [{ type: 'line', data: [[0, 1], [1, 3], [2, 2]] }],\n});\n```\n\n### Annotations\n\nAdd reference lines, point markers, and text overlays to highlight important data features:\n\n```ts\nawait ChartGPU.create(container, {\n  series: [{ type: 'line', data: [[0, 1], [1, 3], [2, 2]] }],\n  annotations: [\n    // Horizontal reference line\n    {\n      id: 'ref-y',\n      type: 'lineY',\n      y: 2.5,\n      layer: 'belowSeries',\n      style: { color: '#ffd166', lineWidth: 2, lineDash: [8, 6], opacity: 0.95 },\n      label: { text: 'threshold' },\n    },\n    // Point marker at peak\n    {\n      id: 'peak',\n      type: 'point',\n      x: 1,\n      y: 3,\n      layer: 'aboveSeries',\n      marker: { symbol: 'circle', size: 8, style: { color: '#ff4ab0' } },\n      label: { template: 'peak={y}', decimals: 2 },\n    },\n  ],\n});\n```\n\nSee [Annotations Documentation](https://github.com/chartgpu/chartgpu/blob/main/docs/api/options.md#annotations) and the [annotations example](https://github.com/chartgpu/chartgpu/tree/main/examples/annotation-authoring).\n\n## Highlights\n\n- 🚀 WebGPU-accelerated rendering for high FPS with large datasets\n- 📈 Multiple series types: line, area, bar, scatter, pie, candlestick\n- 🌡️ Scatter density/heatmap mode (`mode: 'density'`) for large point clouds — see [`docs/api/options.md#scatterseriesconfig`](docs/api/options.md#scatterseriesconfig) and [`examples/scatter-density-1m/`](examples/scatter-density-1m/)\n- 📍 Annotation overlays: reference lines (horizontal/vertical), point markers, and text labels — see [`docs/api/options.md#annotations`](docs/api/options.md#annotations) and [`examples/annotations/`](examples/annotations/)\n- 🧭 Built-in interaction: hover highlight, tooltip, crosshair\n- 🔁 Streaming updates via `appendData(...)` with typed-array support (`XYArraysData`, `InterleavedXYData`, `DataPoint[]`) — see [`examples/cartesian-data-formats/`](examples/cartesian-data-formats/)\n- 🔍 X-axis zoom (inside gestures + optional slider UI)\n- 🎛️ Theme presets (`'dark' | 'light'`) and custom theme support\n- 🔗 Shared GPUDevice support for multi-chart dashboards (efficient GPU resource management) — see [`docs/api/chart.md#shared-gpudevice`](docs/api/chart.md#shared-gpudevice)\n- 🧱 Shared pipeline cache for multi-chart dashboards (dedupe shader modules + render pipelines across charts) — see [`docs/api/chart.md#pipeline-cache-cgpu-pipeline-cache`](docs/api/chart.md#pipeline-cache-cgpu-pipeline-cache)\n\n\n### Candlestick Charts\n\nFinancial OHLC (open-high-low-close) candlestick rendering with classic/hollow style toggle and color customization. The live streaming demo renders **5 million candlesticks at over 100 FPS** with real-time updates.\n\n![Candlestick chart example](docs/assets/candle-stick-example.png)\n\n### Scatter Density (1M points)\n\nGPU-binned density/heatmap mode for scatter plots (`mode: 'density'`) to reveal structure in overplotted point clouds. See [`docs/api/options.md#scatterseriesconfig`](docs/api/options.md#scatterseriesconfig) and the demo in [`examples/scatter-density-1m/`](examples/scatter-density-1m/).\n\n![Scatter density chart example (1M points)](docs/assets/scatter-plot-density-chart-1million-points-example.png)\n\n### Interactive Annotation Authoring\n\nFull-featured annotation authoring system with interactive editing capabilities. Create, edit, drag, and delete annotations with an intuitive UI. Supports all annotation types: reference lines (horizontal/vertical), point markers, text annotations (plot-space + data-space tracking), labels, and styling options.\n\n![Annotations comprehensive demo](docs/assets/annotations.png)\n\n**Key features:**\n- **Right-click empty space** → Add vertical/horizontal line or text note with custom color, style \u0026 label\n- **Click \u0026 drag annotations** → Reposition them (lines constrained to their axis)\n- **Right-click on annotation** → Edit properties or delete\n- **Full styling control** → Color picker, line style (solid/dashed), line width, and label customization\n- **Undo/Redo support** → All annotations are reversible\n- **Scroll to zoom, Drag to pan** → Standard chart interactions work seamlessly\n\n![Annotation configuration dialog](docs/assets/annontations-add-indicator.png)\n\nThe annotation authoring system is demonstrated in the [`examples/annotation-authoring/`](examples/annotation-authoring/) example.\n\n## Installation\n\n```bash\nnpm install chartgpu\n```\n\n**GitHub Packages:**\n\n```bash\nnpm install @chartgpu/chartgpu\n```\n\nFor GitHub Packages, configure your `.npmrc`:\n\n```\n@chartgpu:registry=https://npm.pkg.github.com\n```\n\n## React Integration\n\nReact bindings are available via [`chartgpu-react`](https://github.com/ChartGPU/chartgpu-react):\n\n```bash\nnpm install chartgpu-react\n```\n\n```tsx\nimport { ChartGPUChart } from 'chartgpu-react';\n\nfunction MyChart() {\n  return (\n    \u003cChartGPUChart\n      options={{\n        series: [{ type: 'line', data: [[0, 1], [1, 3], [2, 2]] }],\n      }}\n    /\u003e\n  );\n}\n```\n\nSee the [chartgpu-react repository](https://github.com/ChartGPU/chartgpu-react) for full documentation and examples.\n\n## Browser support (WebGPU required)\n\n- Chrome 113+ or Edge 113+ (WebGPU enabled by default)\n- Safari 18+ (WebGPU enabled by default)\n- Firefox: Windows 114+, Mac 145+, Linux nightly\n\nSee the [gpuweb repository](https://github.com/gpuweb/gpuweb/wiki/Implementation-Status) for full Implementation Status\n\n## Who's Using ChartGPU\n\nChartGPU is a young project and we'd love to hear how you're using it! If your team or project uses ChartGPU, [open a pull request](https://github.com/chartgpu/chartgpu/pulls) to add your name here.\n\n\u003c!-- Add your project/company below:\n- [Your Project](https://link) — short description\n--\u003e\n\n## Documentation\n\n- Full documentation: [Getting Started](https://github.com/chartgpu/chartgpu/blob/main/docs/GETTING_STARTED.md)\n- API reference: [`docs/api/README.md`](https://github.com/chartgpu/chartgpu/blob/main/docs/api/README.md)\n\n## Examples\n\n- Browse examples: [`examples/`](https://github.com/chartgpu/chartgpu/tree/main/examples)\n- Run locally:\n  - `npm install`\n  - `npm run dev` (opens `http://localhost:5173/examples/`)\n\n## Contributing\n\nSee [`CONTRIBUTING.md`](https://github.com/chartgpu/chartgpu/blob/main/CONTRIBUTING.md).\n\n## License\n\nMIT — see [`LICENSE`](https://github.com/chartgpu/chartgpu/blob/main/LICENSE).\n\n## Architecture\n\nChartGPU follows a functional-first architecture. `ChartGPU.create(...)` owns the canvas and WebGPU lifecycle, delegating render orchestration to a modular render coordinator with 11 specialized modules.\n\nFor the full architecture diagram, see [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md). For deep internal notes, see [`docs/api/INTERNALS.md`](docs/api/INTERNALS.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchartgpu%2Fchartgpu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchartgpu%2Fchartgpu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchartgpu%2Fchartgpu/lists"}