Node / Charts · guide
Scatter chart
Current Apexify.js 6.0.0 documentation for Scatter chart.
SOURCEtypescript
typescript
Shares Cartesian helpers with linechart.ts (AxisConfig, grid, legend layout), so ticks, padding, and legend fit modes behave like line charts.
ScatterPoint
x, y, optional label.
ScatterSeries
| Field | Purpose |
|---|---|
label, data | Points. |
color, gradient | Marker fill (gradient mapped like line strokes). |
markerSize, markerType | circle | square | diamond | cross | none. |
opacity | Per-series (**overrides options.points.opacity). |
correlation | Trend line — ScatterCorrelationConfig. |
ScatterCorrelationConfig
| Key | Role |
|---|---|
show | Draw trend under markers. |
type | auto or CorrelationType (linear, polynomial, exponential, logarithmic, none). |
flatThreshold | auto only — if Pearson ** |
degree | Polynomial degree. |
color, lineWidth, lineStyle | Curve styling (LineStyle enum from line chart). |
ScatterChartOptions
dimensions, appearance, axes.{x,y}, labels.title, legend (full cartesian set incl. fit/width), grid, points.opacity, axisPaddingRatio (extra range pad around data — default ~0.06).
Example — two clouds + auto trend
SOURCEtypescript
typescript