import { LineChart } from "semiotic" const frameProps = { /* --- Data --- */ data: [ { week: 1, incidents: 12 }, { week: 2, incidents: 15 }, { week: 3, incidents: 14 }, { week: 4, incidents: 31 }, { week: 5, incidents: 22 }, { week: 6, incidents: 18 }, { week: 7, incidents: 27 }, { week: 8, incidents: 20 } ], /* --- Process --- */ xAccessor: "week", yAccessor: "incidents", /* --- Customize --- */ xLabel: "Week", yLabel: "Incidents", showPoints: true, /* --- Annotate --- */ annotations: [ { type: "callout-circle", x: 4, y: 31, label: "Primary spike to investigate", radius: 7, emphasis: "primary", color: "#d7263d" }, { type: "text", x: 7, y: 27, label: "Secondary recurrence", emphasis: "secondary", color: "#d7263d" }, { type: "y-threshold", value: 25, label: "Escalation threshold", color: "#b45309" }, { type: "callout", x: 1, y: 12, label: "Data excludes planned maintenance", defensive: true, provenance: { source: "user", confidence: 1 } } ], autoPlaceAnnotations: { density: { maxAnnotations: 3 }, progressiveDisclosure: true, redundantCues: true, cohesion: "layer" } } export default () => { return <LineChart {...frameProps} /> }