Tayo
v1.0
Toggle sidebar
Tayo

Charts / Scatter

Scatter

Two-dimensional point plot. Reveals correlations and clusters across two numeric variables.

Dataset Sample size Palette

Data shape

Pass this structure to the :data prop.

data shape
[
    ['x' => 175, 'y' => 80, 'label' => 'Alice', 'group' => 'Control'],
    ['x' => 182, 'y' => 95, 'label' => 'Bob',   'group' => 'Treatment'],
]

Usage

blade
<x-tayo::chart
    type="scatter"
    :data="$data"
    :height="420"
    colors="default"
/>