BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/bklit-ui/live-line-chart
This component no longer exists. It was in bklit-ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-10 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.

Live Line Chart

bklit-ui/live-line-chart
RemovedComponent

Real-time streaming line chart with smooth scrolling, crosshair, and animated axes

Install it

npx shadcn@latest add https://bklit.com/r/live-line-chart.json

Source

src/charts/live-line-chart.tsxbklit.com/r/live-line-chart.json · first 6 KB
1"use client";
2
3import { localPoint } from "@visx/event";
4import { ParentSize } from "@visx/responsive";
5import { scaleLinear, scaleTime } from "@visx/scale";
6import { bisector } from "d3-array";
7import {
8 Children,
9 isValidElement,
10 memo,
11 type ReactElement,
12 type ReactNode,
13 startTransition,
14 useCallback,
15 useEffect,
16 useMemo,
17 useRef,
18 useState,
19} from "react";
20import { cn } from "@/lib/utils";
21import {
22 isClipExcludedComponent,
23 isUnderlayComponent,
24} from "./chart-child-passthrough";
25import {
26 ChartProvider,
27 type LineConfig,
28 type Margin,
29 type TooltipData,
30} from "./chart-context";
31import { hmsTimeFmt } from "./chart-formatters";
32import { DEFAULT_CHART_LIFECYCLE } from "./chart-phase";
33import type { LiveLineProps } from "./live-line";
34import { extractReferenceAreaConfigs } from "./reference-area-config";
35import { wrapSingleYScale } from "./y-axis-scales";
36
37// ---------------------------------------------------------------------------
38// Types
39// ---------------------------------------------------------------------------
40
41export interface LiveLinePoint {
42 time: number;
43 value: number;
44}
45
46export interface LiveLineChartProps {
47 /** Streaming data — array of { time: unixSeconds, value } */
48 data: LiveLinePoint[];
49 /** Latest value (smoothly interpolated to) */
50 value: number;
51 /** Key used for the value field in context data. Default: "value" */
52 dataKey?: string;
53 /** Visible time window in seconds. Default: 30 */
54 window?: number;
55 /** Number of X-axis ticks (used to compute leading offset). Default: 5 */
56 numXTicks?: number;
57 /** Leading offset in X-tick units (0 = now at right edge). Default: 0 */
58 nowOffsetUnits?: number;
59 /** Tight Y-axis. Default: false */
60 exaggerate?: boolean;
61 /** Interpolation speed (0–1). Default: 0.08 */
62 lerpSpeed?: number;
63 /** Chart margins */
64 margin?: Partial<Margin>;
65 /** Freeze chart scrolling. Default: false */
66 paused?: boolean;
67 /** Child components (LiveLine, Grid, ChartTooltip, LiveXAxis, LiveYAxis, etc.) */
68 children: ReactNode;
69 className?: string;
70 style?: React.CSSProperties;
71}
72
73// ---------------------------------------------------------------------------
74// Helpers
75// ---------------------------------------------------------------------------
76
77const LERP_SPEED = 0.08;
78const DEFAULT_MARGIN: Margin = { top: 24, right: 16, bottom: 32, left: 16 };
79/** React commit interval for the live animation loop (~30fps). */
80const LIVE_FRAME_COMMIT_MS = 32;
81
82// … truncated

What it pulls in

npm packages

  • @visx/curve@4.0.1-alpha.0
  • @visx/scale@4.0.1-alpha.0
  • @visx/shape@4.0.1-alpha.0
  • @visx/responsive@4.0.1-alpha.0
  • @visx/event@4.0.1-alpha.0
  • d3-array
  • motion

Other registry items

  • @bklit/chart-context
  • @bklit/chart-tooltip
  • @bklit/utils

Files it writes

  • src/charts/live-line-chart.tsx
  • src/charts/chart-child-passthrough.ts
  • src/charts/live-line.tsx
  • src/charts/live-x-axis.tsx
  • src/charts/live-y-axis.tsx

Facts

Registry
bklit-ui
Type
registry:component
Access
Free
Files written
5
Licence
MIT
In the index
at or before 2026-08-06
Last confirmed
9 days ago

Go to the source

bklit.com bklit/bklit-ui on GitHub Raw registry item This item as JSON

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex