ScatterPlot
data
Point marker
Terminal
$termuijs render scatter-plot
Installation
$ bunx termuijs add scatter-plot
Copies the source into src/components/scatter-plot/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { ScatterPlot } from '@termuijs/widgets'ts
new ScatterPlot(style?: Partial<Style>, opts?: ScatterPlotOptions)API Reference
ScatterPlot
| Prop | Type | Required | Description |
|---|---|---|---|
xLabel | string | optional | X axis label |
yLabel | string | optional | Y axis label |
marker | string | optional | Point marker |
pointColor | Color | optional | — |