Skip to content

Line chart

Quantitative SSR SVG for latency, queue depth, or any ordered numeric series. Renderer stays Go-native; surrounding panel stays application-owned.

Purpose
Summarize one or more ordered numeric series without browser rendering.
Primitive
line.Line
Kind
components.KindLineChart
Configuration
Label, Caption, axis Labels, named Series, optional Width, and Height.
Accessibility
Figure name comes from Label; Caption stays visible. Keep an adjacent table or text summary when exact values are needed.
Usage Example
@line.Line(line.Config{
  Label: "HTTPS monitor latency in milliseconds",
  Labels: []string{"08:00", "08:01", "08:02"},
  Series: []line.Series{{Name: "Latency (ms)", Values: []float64{42, 47, 51}}},
})

Theme contract

Line and heartbeat resolve Goshtoso semantic CSS tokens at display time. One SSR response follows every built-in theme and its dark mode; no browser chart renderer is involved.