@lineandvertexsoftware/vertexa-chart
v0.1.11
Published
High-performance charting library using WebGPU and D3.js
Maintainers
Readme
@lineandvertexsoftware/vertexa-chart
Core chart API for Vertexa Chart.
Install
npm install @lineandvertexsoftware/vertexa-chartUsage
import { Chart } from "@lineandvertexsoftware/vertexa-chart";
const chart = new Chart(document.querySelector("#root")!, {
width: 920,
height: 520,
traces: []
});Public API
setTraces(traces)appendPoints(updates, options?)exportPng(options?)exportSvg(options?)exportCsvPoints(options?)setLayout(layout)setSize(width, height)panBy(dxCss, dyCss)zoomBy(factor, centerPlot?)resetView()fitToData()autoscaleY()setAspectLock(enabled)setPerformanceMode(mode)getPerformanceStats()destroy()
For full examples and docs, see the monorepo README: https://github.com/LineandVertexSoftware/vertexa-chart/blob/main/README.md
