@perspective-dev/viewer
Perspective is an open-source data grid, pivot table and charting component for large, real-time and streaming datasets.
@perspective-dev/viewer provides <perspective-viewer>, a framework-free
Web Component (Custom Element) which gives users a drag-and-drop interface for
grouping, pivoting, filtering, sorting and charting a Perspective Table.
Configurations can be saved and restored as JSON, themed with CSS, and update
live as the underlying data streams in.
Visualizations are plugins:
@perspective-dev/viewer-datagrid, a virtual-scrolling, editable data grid and pivot table.@perspective-dev/viewer-charts, WebGL bar, line, area, scatter, heatmap, treemap, sunburst, candlestick, OHLC and map charts.
For React, see
@perspective-dev/react.
Quick start, no bundler
Installation with a bundler
import perspective from "@perspective-dev/client";
import perspective_viewer from "@perspective-dev/viewer";
import "@perspective-dev/viewer-datagrid";
import "@perspective-dev/viewer-charts";
import "@perspective-dev/viewer/dist/css/themes.css";
import SERVER_WASM from "@perspective-dev/server/dist/wasm/perspective-server.wasm";
import CLIENT_WASM from "@perspective-dev/viewer/dist/wasm/perspective-viewer.wasm";
await Promise.;
const worker = await perspective.;
const viewer = document.;
await viewer.;
await viewer.;
Loader configuration for Vite, esbuild and Webpack is covered in the bundling guide.