01 | 01a | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09

07 — Scatter

Planned for Phase 3. Scatter charts will render XY data as points without connecting lines, with optional size and colour mapping per point.


Planned API

chart := gogal.NewScatterChart(
    gogal.WithTitle("Height vs Weight"),
    gogal.WithXTitle("Height (cm)"),
    gogal.WithYTitle("Weight (kg)"),
    gogal.WithGrid(true),
)
chart.Add("Male", malePoints)
chart.Add("Female", femalePoints)
Per-point styling — scatter charts will use DataPoint.Color for individual point colours and a new Size field for bubble charts.

Features planned

Feature Description
Basic scatter Points plotted at X,Y coordinates
Multi-series Colour-coded series with legend
Bubble Point size mapped to a third variable
Tooltips Hover to see point labels

See ROADMAP for timeline.


Back to examples | API docs