Machine-readable page content
Canonical: https://semiotic.nteract.io/playground/forecast
Forecast & Anomaly Detection Playground
The forecast prop on LineChart provides built-in statistical overlays. The line splits into three visual segments:training (dashed),observed (solid), andforecast (dotted with confidence envelope).
Auto mode computes regression from training data and extrapolates. Pre-computed mode reads segment flags and bounds from your data — use this when bounds come from an ML model. The envelope follows per-point upper/lower bounds (non-rectilinear), and anomalous points are flagged via an isAnomaly field.
Train/Forecast split at x=60 · 80 points
Forecast
Anomaly
Line
Generated Code
JSX
import { LineChart } from "semiotic" // Auto: Linear Trend + Anomalies const data = [...] // Auto: Linear Trend + Anomalies <LineChart data={data} xAccessor="time" yAccessor="value" showGrid forecast={{ trainEnd: 60, }} anomaly={{}} />