Skip to content

ScatterPlot

widgetsdata

Point marker

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

PropTypeRequiredDescription
xLabelstringoptionalX axis label
yLabelstringoptionalY axis label
markerstringoptionalPoint marker
pointColorColoroptional
#data#scatter-plot