Skip to content
  • System
  • Light
  • Dark
  • High contrast

ScatterChart

246810121015202530354045Page complexityIssues found
LabelPage complexityIssues found
Homepage123
Dashboard287
Settings4512
About81
Reports359
import { ScatterChart } from '@eekodigital/raster';

<ScatterChart
  data={[
    { x: 12, y: 3, label: 'Homepage' },
    { x: 28, y: 7, label: 'Dashboard' },
  ]}
  xLabel="Page complexity"
  yLabel="Issues found"
  aria-label="Complexity vs issues"
/>
2468101020304050ElementsViolations
Audit 1Audit 2
SeriesElementsViolations
Audit 1102
Audit 1255
Audit 1408
Audit 2154
Audit 2303
Audit 25010
<ScatterChart
  series={[
    { name: 'Audit 1', data: [...], color: 'var(--color-interactive)' },
    { name: 'Audit 2', data: [...], color: 'var(--color-success)' },
  ]}
  xLabel="Elements"
  yLabel="Violations"
  aria-label="Audit comparison"
/>
PropTypeDefaultDescription
dataScatterPoint[]

Single series: { x, y, label? }

seriesScatterSeries[]

Multi-series: { name, data, color? }

xLabelstringX-axis title
yLabelstringY-axis title
grid”horizontal” | “vertical” | “both” | “none""both”Grid line visibility
formatValue(v: number) => stringStringFormat tick values
onPointClick(point, si, pi) => voidClick handler per point
aria-labelstringRequired.