Skip to content

Brush

Examples

Users by day
TimeUsers
17933184000001200
17934048000001350
17934912000001100
17935776000001450
17936640000001380
17937504000001520
17938368000001600
17939232000001480
17940096000001550
17940960000001420
17941824000001680
17942688000001750
17943552000001620
17944416000001580
17945280000001720
17946144000001850
17947008000001780
17947872000001650
17948736000001920
17949600000001880
17950464000001750
17951328000001980
17952192000002050
17953056000001920
17953920000002100
17954784000002180
17955648000002050
17956512000002250
17957376000002320
17958240000002400

API Reference

Types come from the public API. A dash indicates no default is documented here.

ChartBrush props

Public source
PropTypeDefaultDescription
keyKeepAliveKey<K, Ends> | undefined''The child's identity among its parent's children of one component, or a kept child's among its author's. The empty string by default.
onEmit
Show type
((events: { readonly _tag: "SelectionObserved"; readonly range: { readonly start: number; readonly end: number; }; readonly kind: "cancel" | "keyboard" | "preview" | "commit"; }) => NoInfer<Msg> | undefined) | { readonly SelectionObserved: (event: { readonly _tag: "SelectionObserved"; readonly range: { readonly start: number; readonly end: number; }; readonly kind: "cancel" | "keyboard" | "preview" | "commit"; }) => NoInfer<Msg> | undefined; } | undefined
—Handle the child's events with a callback, or supply one handler per tag for tagged events. Return a parent message to dispatch it, or `undefined` to ignore the event.
props.data
Show type
readonly { readonly [x: string]: string | number | null; readonly date: number; readonly detail?: string; readonly category?: string; }[]
Required
props.idstringRequired
props.ariaLabelstringRequired
props.selection{ readonly start: number; readonly end: number; } | nullRequired
props.dataKeystringRequired
props.line{ readonly horizontalInset?: number; }—
props.colorstring'var(--chart-1)'
props.heightnumber90
props.widthnumber640
props.responsiveboolean—