data | array | — | [] | Controlled data array. Each object should contain fields matched by timeAccessor and valueAccessor. |
timeAccessor | string | function | — | "time" | Field name or function to access the time value from each data point. |
valueAccessor | string | function | — | "value" | Field name or function to access the numeric value from each data point. |
size | [number, number] | — | [500, 300] | Chart dimensions as [width, height]. |
margin | object | — | — | Chart margins: { top, right, bottom, left }. |
arrowOfTime | "left" | "right" | — | "right" | Direction that time flows across the chart. |
windowMode | "sliding" | "growing" | — | "sliding" | Data retention strategy. "sliding" discards old points beyond windowSize. |
windowSize | number | — | 200 | Ring buffer capacity when using sliding window mode. |
timeExtent | [number, number] | — | — | Fixed time domain. Defaults to auto-fit. |
valueExtent | [number, number] | — | — | Fixed value domain. Defaults to auto-fit. |
yScaleType | "linear" | "log" | "symlog" | — | "linear" | Value-axis scale. symlog supports signed values while compressing large magnitudes. |
extentPadding | number | — | — | Padding factor applied to auto-computed extents. |
categoryAccessor | string | function | — | — | Category accessor for color-coding dots by group. |
colors | object | — | — | Category-to-color map when using categoryAccessor. |
radius | number | — | — | Dot radius in pixels. |
fill | string | — | — | Dot fill color when no categoryAccessor is set. |
opacity | number | — | — | Dot opacity (0 to 1). |
stroke | string | — | — | Dot stroke (outline) color. |
strokeWidth | number | — | — | Dot stroke width. |
pointStyle | function | — | — | Per-datum dot style callback. Returned fill, stroke, strokeWidth, opacity, and r values override chart defaults. |
showAxes | boolean | — | true | Show canvas-drawn axes. |
background | string | — | — | Background fill color for the chart area. |
enableHover | boolean | object | — | — | Enable hover annotations on dots. |
tooltipContent | function | — | — | Custom tooltip render function. Receives hover data. |
onHover | function | — | — | Callback fired on hover. Receives hover data or null. |
annotations | array | — | — | Array of annotation objects, including threshold coloring rules. |
svgAnnotationRules | function | — | — | Custom SVG annotation render function. |
tickFormatTime | function | — | — | Custom formatter for time axis tick labels. |
tickFormatValue | function | — | — | Custom formatter for value axis tick labels. |
className | string | — | — | CSS class name for the chart container. |