@photonviz/vue

Vue bindings for Photon — WebGL2 scientific plotting
2,451 8
Install
npm install @photonviz/vue
Latest Version:0.8.0
Vue:3
License:MIT
Last Updated:Sep 21, 2026
Links: GitHub  ·  npm
Maintainer: coredumpdev

Photon

@photonviz/vue

Vue 3 bindings for Photon — GPU-accelerated WebGL2 charts.

npm downloads · ▶ Live demo · Docs for AI agents

Live streaming WebGL2 charts at 60fps

Photon chart gallery

Declarative components over @photonviz/core using provide/inject: a <Plot> container with chart children that stream via setData on reactive data changes.

npm i @photonviz/core @photonviz/vue

Quick start

<script setup lang="ts">
import { Plot, Line, YAxis } from "@photonviz/vue";
defineProps<{ x: Float64Array; y: Float64Array }>();
</script>

<template>
  <div style="height: 320px">
    <Plot :options="{ theme: 'dark' }">
      <YAxis id="power" side="right" color="#f472b6" />
      <Line :x="x" :y="y" color="#60a5fa" :width="2" name="signal" />
    </Plot>
  </div>
</template>

Pass a new typed-array reference to stream — the layer updates via setData under the hood.

Components

Plot · Line · Scatter · Bar · Area · Heatmap · Box · Hexbin · Contour · ErrorBar · Stem · Quiver · Candlestick · Ohlc · Pie · Patches · Image · Graph · YAxis

Polar — PolarPlot with PolarLine / PolarScatter. 3D — Plot3D with Surface / PointCloud / Line3D / Bar3D / Quiver3D / Contour3D / Isosurface / Volume. Finance — HeikinAshi / Renko / Bollinger / VolumeProfile / Depth, plus re-exported indicators (rsi, macd, sma, ema, wma, vwap, atr, stochastic, keltner, obv, ichimoku, adx, superTrend, fibRetracements). Every layer accepts :render-type="'static' | 'dynamic'"; pass new typed arrays to stream.

The toolbar includes a one-click download-PNG button; the underlying core Plot also exposes image export (downloadImage() / toDataURL() / toBlob() / copyToClipboard()).

License

MIT · github.com/coredumpdev/photon

Related Packages

anichart

Data visualization animation library

4,253 1,131
plotscope-vue

PlotScope as a Vue component

1,106
@memotux/nuxt-vue-plot

Nuxt module for @memotux/vue-plot — declarative data visualization with Observab...

376 2
@yamakox/vue3-plotly

A Vue 3 wrapper component for Plotly.js

2,077 1
@composy/chart-vue

Vue 3 adapter for @composy/chart-workspace

0

Version History

Version Released Vue License
0.8.0 >=3.3 MIT
0.7.2 >=3.3 MIT
0.7.1 >=3.3 MIT
0.7.0 >=3.3 MIT
0.6.0 >=3.3 MIT