Skip to content

Area

Overview

Revenue and costs by day
TimeRevenueCosts
1793318400000120008500
1793404800000135009200
1793491200000110007800
17935776000001450010100
1793664000000138009400
17937504000001520010800
17938368000001600011200
17939232000001480010500
17940096000001550010900
1794096000000142009800
17941824000001680011800
17942688000001750012400
17943552000001620011500
17944416000001580011200
17945280000001720012100
17946144000001850013200
17947008000001780012600
17947872000001650011700
17948736000001920013800
17949600000001880013400
17950464000001750012400
17951328000001980014200
17952192000002050014800
17953056000001920013600
17953920000002100015200
17954784000002180015800
17955648000002050014600
17956512000002250016200
17957376000002320016800
17958240000002400017400

Loading state

Revenue and costs by day
TimeRevenueCosts
1793318400000120008500
1793404800000135009200
1793491200000110007800
17935776000001450010100
1793664000000138009400
17937504000001520010800
17938368000001600011200
17939232000001480010500
17940096000001550010900
1794096000000142009800
17941824000001680011800
17942688000001750012400
17943552000001620011500
17944416000001580011200
17945280000001720012100
17946144000001850013200
17947008000001780012600
17947872000001650011700
17948736000001920013800
17949600000001880013400
17950464000001750012400
17951328000001980014200
17952192000002050014800
17953056000001920013600
17953920000002100015200
17954784000002180015800
17955648000002050014600
17956512000002250016200
17957376000002320016800
17958240000002400017400

Sweep loading style

Revenue and costs by day
TimeRevenueCosts
1793318400000120008500
1793404800000135009200
1793491200000110007800
17935776000001450010100
1793664000000138009400
17937504000001520010800
17938368000001600011200
17939232000001480010500
17940096000001550010900
1794096000000142009800
17941824000001680011800
17942688000001750012400
17943552000001620011500
17944416000001580011200
17945280000001720012100
17946144000001850013200
17947008000001780012600
17947872000001650011700
17948736000001920013800
17949600000001880013400
17950464000001750012400
17951328000001980014200
17952192000002050014800
17953056000001920013600
17953920000002100015200
17954784000002180015800
17955648000002050014600
17956512000002250016200
17957376000002320016800
17958240000002400017400

Loading placeholder

Revenue and costs by day
Timeskeleton

API Reference

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

TimeSeriesChart props

Public source
PropTypeDefaultDescription
props.kind"line" | "area"Required
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: "FocusChanged"; readonly index: number | null; } | { readonly _tag: "PhaseChanged"; readonly phase: "loading" | "exiting" | "ready" | "gridTweenReady" | "revealing" | "exitingReady" | "gridTweenLoading" | "revealingLoading"; }) => NoInfer<Msg> | undefined) | { readonly FocusChanged: (event: { readonly _tag: "FocusChanged"; readonly index: number | null; }) => NoInfer<Msg> | undefined; readonly PhaseChanged: (event: { readonly _tag: "PhaseChanged"; readonly phase: "loading" | "exiting" | "ready" | "gridTweenReady" | "revealing" | "exitingReady" | "gridTweenLoading" | "revealingLoading"; }) => 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.colorstring'var(--chart-1, #6366f1)'
props.animationDurationnumber500
props.aspectRationumber—
props.grid
Show type
{ readonly horizontal?: boolean; readonly highlightRowValues?: readonly number[]; readonly highlightRowStroke?: string; readonly highlightRowStrokeDasharray?: string; readonly highlightRowStrokeOpacity?: number; }
—
props.heightnumber
Varies
  • (props.aspectRatio === undefined ? 300 : (props.width ?? 640) / props.aspectRatio)
  • 300
props.margin
Show type
{ readonly bottom?: number; readonly left?: number; readonly right?: number; readonly top?: number; }
—
props.widthnumber640
props.status"loading" | "ready"'ready'
props.tooltip
Show type
{ readonly backgroundColor?: string; readonly className?: string; readonly rows?: readonly { readonly label?: string; readonly value?: string | number; readonly color?: string; readonly unit?: "number" | "percent" | "currency" | "credits" | "tokens" | "users" | "requests" | "creditsPerUser"; readonly dataKey?: string; readonly labelDataKey?: string; readonly colorDataKey?: string; readonly hideIfMissing?: boolean; }[]; readonly titleDataKey?: string; readonly detailDataKey?: string; readonly includeDetail?: boolean; readonly showDatePill?: boolean; readonly showCrosshair?: boolean; readonly showDots?: boolean; readonly dotSize?: number; readonly dotStrokeWidth?: number; readonly indicatorColorDataKey?: string; }
—
props.unit"number" | "percent" | "currency" | "credits" | "tokens" | "users" | "requests" | "creditsPerUser"—
props.responsiveboolean—
props.fallbackTableRowLimitnumber—
props.series
Show type
readonly { readonly kind: "line" | "area"; readonly dataKey: string; readonly label?: string; readonly fill?: string; readonly color?: string; readonly fillOpacity?: number; readonly strokeWidth?: number; readonly unit?: "number" | "percent" | "currency" | "credits" | "tokens" | "users" | "requests" | "creditsPerUser"; readonly fadeEdges?: boolean | "left" | "right"; readonly dashFromIndex?: number; readonly markers?: { readonly fill?: string; readonly stroke?: string; readonly radius?: number; readonly strokeWidth?: number; readonly ringGap?: number; }; readonly loadingStyle?: "pulse" | "sweep"; readonly showMarkers?: boolean; readonly showHighlight?: boolean; readonly yAxisId?: string | number; readonly showLine?: boolean; readonly gradientToOpacity?: number; readonly gradientSpan?: number; readonly dashArray?: string; }[]
Varies
  • [ { dataKey: 'value', kind: config.kind, color: config.color ?? 'var(--chart-1, #6366f1)' }, ]
  • [ { dataKey: 'value', kind: props.kind, color: props.color ?? 'var(--chart-1, #6366f1)' }, ]
props.yAxes
Show type
readonly { readonly orientation?: "left" | "right"; readonly unit?: "number" | "percent" | "currency" | "credits" | "tokens" | "users" | "requests" | "creditsPerUser"; readonly yAxisId?: string | number; readonly domain?: readonly [number, number]; readonly numTicks?: number; readonly formatLargeNumbers?: boolean; }[]
[ { yAxisId: 'left', ...(config.unit === undefined ? {} : { unit: config.unit }) }, ]
props.xAxis{ readonly numTicks?: number; readonly tickMode?: "data" | "domain"; }{}
props.bands
Show type
readonly { readonly upperKey: string; readonly lowerKey: string; readonly label?: string; readonly pattern?: "accent" | "grid" | "none" | "horizontal" | "vertical" | "vertical-dense" | "horizontal-dense" | "diagonal-up" | "diagonal-up-sparse" | "diagonal-down" | "diagonal-down-sparse" | "vertical-dashed" | "horizontal-dashed" | "horizontal-dashed-dense" | "grid-dashed" | "grid-dotted" | "dots" | "dots-sparse" | "diagonal-dots-up" | "diagonal-dots-up-sparse" | "diagonal-dots-down" | "diagonal-dots-down-sparse" | "circles-dense" | "circles" | "circles-sparse" | "blocks" | "checkerboard-xs" | "checkerboard-sm" | "checkerboard" | "checkerboard-lg" | "checkerboard-inset" | "diagonal" | "cross"; readonly fill?: string; readonly stroke?: string; readonly fillOpacity?: number; readonly strokeDasharray?: string; readonly strokeOpacity?: number; readonly strokeWidth?: number; readonly className?: string; readonly fadeEdges?: boolean | "left" | "right" | { readonly bottom?: boolean; readonly left?: boolean; readonly right?: boolean; readonly top?: boolean; }; readonly yAxisId?: string | number; readonly gradientToOpacity?: number; readonly curve?: "natural" | "linear" | "monotone"; readonly fillType?: "pattern" | "solid" | "gradient"; readonly upperStroke?: false | { readonly stroke?: string; readonly strokeDasharray?: string; readonly strokeOpacity?: number; readonly strokeWidth?: number; }; readonly lowerStroke?: false | { readonly stroke?: string; readonly strokeDasharray?: string; readonly strokeOpacity?: number; readonly strokeWidth?: number; }; readonly patternColor?: string; readonly patternOpacity?: number; readonly fadeSize?: number; readonly patternScale?: number; readonly patternStrokeWidth?: number; readonly showInTooltip?: boolean; readonly negativeFill?: string; }[]
[]
props.weekends
Show type
readonly { readonly pattern?: "accent" | "grid" | "none" | "horizontal" | "vertical" | "vertical-dense" | "horizontal-dense" | "diagonal-up" | "diagonal-up-sparse" | "diagonal-down" | "diagonal-down-sparse" | "vertical-dashed" | "horizontal-dashed" | "horizontal-dashed-dense" | "grid-dashed" | "grid-dotted" | "dots" | "dots-sparse" | "diagonal-dots-up" | "diagonal-dots-up-sparse" | "diagonal-dots-down" | "diagonal-dots-down-sparse" | "circles-dense" | "circles" | "circles-sparse" | "blocks" | "checkerboard-xs" | "checkerboard-sm" | "checkerboard" | "checkerboard-lg" | "checkerboard-inset" | "diagonal" | "cross"; readonly fill?: string; readonly fillOpacity?: number; readonly className?: string; readonly align?: "auto" | "calendar" | "centered"; readonly fillType?: "pattern" | "solid"; readonly patternScale?: number; readonly patternStrokeWidth?: number; readonly weekendDays?: readonly number[]; readonly utc?: boolean; readonly minDayWidth?: number; readonly dateKey?: string; }[]
[]
props.deadlines
Show type
readonly { readonly date: number; readonly label?: string; readonly pattern?: "accent" | "grid" | "none" | "horizontal" | "vertical" | "vertical-dense" | "horizontal-dense" | "diagonal-up" | "diagonal-up-sparse" | "diagonal-down" | "diagonal-down-sparse" | "vertical-dashed" | "horizontal-dashed" | "horizontal-dashed-dense" | "grid-dashed" | "grid-dotted" | "dots" | "dots-sparse" | "diagonal-dots-up" | "diagonal-dots-up-sparse" | "diagonal-dots-down" | "diagonal-dots-down-sparse" | "circles-dense" | "circles" | "circles-sparse" | "blocks" | "checkerboard-xs" | "checkerboard-sm" | "checkerboard" | "checkerboard-lg" | "checkerboard-inset" | "diagonal" | "cross"; readonly stroke?: string; readonly color?: string; readonly fillOpacity?: number; readonly strokeDasharray?: string; readonly strokeOpacity?: number; readonly strokeWidth?: number; readonly className?: string; readonly showLine?: boolean; readonly gradientToOpacity?: number; readonly fillType?: "pattern" | "none" | "solid" | "gradient"; readonly patternScale?: number; readonly patternStrokeWidth?: number; readonly dateKey?: string; readonly labelPosition?: "bottom" | "top"; readonly fade?: boolean; readonly fadeLength?: number; readonly labelColor?: string; readonly endDate?: number; }[]
[]
props.trendLines
Show type
readonly { readonly dataKey: string; readonly animate?: boolean; readonly opacity?: number; readonly stroke?: string; readonly strokeDasharray?: string; readonly strokeWidth?: number; readonly className?: string; readonly fadeEdges?: boolean | "left" | "right"; readonly yAxisId?: string | number; readonly strokeStyle?: "solid" | "gradient" | "dashed"; readonly gradientStart?: string; readonly gradientEnd?: string; readonly fadeEdgesLength?: number; }[]
[]
props.referenceAreas
Show type
readonly { readonly label?: string; readonly fill?: string; readonly stroke?: string; readonly fillOpacity?: number; readonly strokeDasharray?: string; readonly strokeWidth?: number; readonly x1?: number; readonly y1?: number; readonly x2?: number; readonly y2?: number; readonly fadeEdges?: boolean; readonly showMarkers?: boolean; readonly yAxisId?: string | number; readonly strokeStyle?: "solid" | "dashed"; readonly markerColor?: string; readonly markerSize?: number; readonly axisLabelColor?: string; }[]
[]
props.eventMarkers
Show type
{ readonly items: readonly { readonly title: string; readonly date: number; readonly icon: string; readonly color?: string; readonly description?: string; readonly href?: `#${string}` | `/${string}` | `https://${string}` | `http://${string}`; readonly target?: "_blank" | "_self"; }[]; readonly size?: number; readonly maxFanned?: number; readonly showLines?: boolean; }
—
props.patternAreas
Show type
readonly { readonly dataKey: string; readonly patternColor?: string; readonly patternPreset?: "horizontal" | "vertical" | "dots" | "diagonal"; }[]
[]
props.projectionLines
Show type
readonly { readonly data: readonly { readonly date: number; readonly value: number; }[]; readonly stroke?: string; readonly strokeDasharray?: string; readonly strokeWidth?: number; readonly yAxisId?: string | number; readonly strokeStyle?: "solid" | "gradient"; readonly gradientStart?: string; readonly gradientEnd?: string; readonly curveKind?: "linear" | "bezier"; readonly showEndMarker?: boolean; }[]
[]
props.terminalMarkers
Show type
readonly { readonly dataKey: string; readonly fill?: string; readonly stroke?: string; readonly radius?: number; readonly strokeWidth?: number; readonly ringGap?: number; readonly yAxisId?: string | number; }[]
[]
props.profitLossLines
Show type
readonly { readonly dataKey: string; readonly strokeWidth?: number; readonly fadeEdges?: boolean; readonly positiveColor?: string; readonly negativeColor?: string; }[]
[]
props.profitLossLegendIndex0 | 1 | null—
props.legendHoveredIndexnumber | null—
props.ariaDescriptionstring—
props.xDataKeystring'date'
props.xDomainreadonly [number, number]—
props.yDomainreadonly [number, number]—
props.secondaryUnit"number" | "percent" | "currency" | "credits" | "tokens" | "users" | "requests" | "creditsPerUser"—
props.loadingLabelstring—
props.segmentSelectionboolean—
props.yDomainTweenbooleantrue
props.yDomainTweenDurationnumber500
props.revealSignaturestring''