v0.3.2
Since v0.3.1:
✨ Features
- Image export — every plot (
Plot/Plot3D/PolarPlot) hastoDataURL()/toBlob()/downloadImage()/copyToClipboard(), plus a one-click download-PNG button on the toolbar (and next to reset-view on 3D). - Interactive drawing tools —
new Plot(el, { drawingTools: true })adds trendline / horizontal / ray / Fibonacci / rectangle tools. Drawings are editable: drag endpoint handles to reshape, drag the body to move, double-click to label, right-click for a context menu (rename / recolor / delete), Delete to remove. - 7 diagram chart types —
addTreemap·addFunnel·addSunburst·addGauge·addSankey·addChord·addParallelCoordinates(pure*Layoutfns exported too). - 7 more finance indicators — Stochastic, Keltner, OBV, Ichimoku, ADX, SuperTrend, Fibonacci retracements.
@photonviz/wc— new framework-agnostic Web Components package:<photon-plot>/<photon-plot3d>/<photon-polar>.- Data adapters —
parseCSV(text)→ a typedTable, andlttb(x, y, threshold)downsampling for long line series. - Accessibility — plots render as
role="img"with an auto-summarizedaria-label(ariaLabel/setAriaLabel()/describe()). - Examples — per-chart fullscreen button; a new interactive playground (CodeMirror editor) and a Web Components gallery.
🐛 Fixes
- Ordinal-time axis gridlines now snap to real calendar dates (month/week/day) and no longer drift when panning.
- Hover x-readout uses the axis scale's formatter (dates on time/ordinal-time instead of a raw index).
All 8 packages published to npm at 0.3.2.