sheengemologic ui
All components

LineChart

Renders a responsive token-themed SVG line chart for bounded time or numeric data with explicit gaps.@gemologic/sheen-charts · data

Playground

Request latencyLatency declined; one p99 sample is missing.
p50p99
Use Left and Right Arrow, Home, and End to inspect samples. Press Escape to clear the inspection.
View as table

Latency declined; one p99 sample is missing.

Request latency
Timep50p99
Jan 1, 2024, 12:00:00 AM18 ms42 ms
Jan 1, 2024, 12:01:00 AM16 msMissing value
Jan 1, 2024, 12:02:00 AM15 ms34 ms
<LineChart label="Request latency" summary="Latency declined; one p99 sample is missing." xLabel="Time" series={requestSeries} data={requestData} x={{ type: "time", tz: "UTC" }} y={{ format: "duration" }} height={240}  curve="linear"/>

Variant matrix

Request latency
Request latencyLatency declined; one p99 sample is missing.
p50p99
Use Left and Right Arrow, Home, and End to inspect samples. Press Escape to clear the inspection.
View as table

Latency declined; one p99 sample is missing.

Request latency
Timep50p99
Jan 1, 2024, 12:00:00 AM18 ms42 ms
Jan 1, 2024, 12:01:00 AM16 msMissing value
Jan 1, 2024, 12:02:00 AM15 ms34 ms
curve: linear
Request latencyLatency declined; one p99 sample is missing.
p50p99
Use Left and Right Arrow, Home, and End to inspect samples. Press Escape to clear the inspection.
View as table

Latency declined; one p99 sample is missing.

Request latency
Timep50p99
Jan 1, 2024, 12:00:00 AM18 ms42 ms
Jan 1, 2024, 12:01:00 AM16 msMissing value
Jan 1, 2024, 12:02:00 AM15 ms34 ms
curve: step
Request latencyLatency declined; one p99 sample is missing.
p50p99
Use Left and Right Arrow, Home, and End to inspect samples. Press Escape to clear the inspection.
View as table

Latency declined; one p99 sample is missing.

Request latency
Timep50p99
Jan 1, 2024, 12:00:00 AM18 ms42 ms
Jan 1, 2024, 12:01:00 AM16 msMissing value
Jan 1, 2024, 12:02:00 AM15 ms34 ms

Anatomy

Package
@gemologic/sheen-charts
Source
packages/charts/src/ContinuousSvgChart.tsx
Tokens
  • --sheen-chart-1
  • --sheen-chart-2
  • --sheen-chart-grid
  • --sheen-chart-axis
  • --sheen-chart-line-width
  • --sheen-color-fg
  • --sheen-color-fg-muted

Accessibility

Role: labeled SVG image with visible narrative and native table disclosureKeyboard: Focus the plot and use Left/Right, Home/End, and Escape to inspect samples., Use the native view-as-table disclosure for every exact sample.

Do

  • Use for complete bounded data under 2,000 marks and retain NaN gaps.

Do not

  • Do not use SVG for high-volume or streaming time series; use TimeSeries.

Generated props

NameTypeDefaultDescription
curve"linear" | "step"linearHonest linear or step-after interpolation.
label *stringRequired visible and accessible chart name.
summary *stringRequired narrative interpretation.
xLabel *stringRequired domain-axis and native-table label.
series *readonly ChartSeries[]Validated series definitions with semantic colors and optional non-color line encodings.
data *ChartDataEqual-length Float64 columns; NaN breaks a path.
x *import("./chart-types.ts").ChartTimeAxis | import("./chart-types.ts").ChartNumberAxisTime or numeric domain formatting.
yimport("./chart-types.ts").ChartValueAxisShared value formatting and optional zero baseline.
height *numberReserved SVG height, at least 120 CSS pixels.
legendimport("./chart-types.ts").ChartLegendinlineInline, stacked, or hidden series key.
tooltipbooleantrueWhether single-tab-stop pointer and keyboard inspection is enabled.
annotationsreadonly ChartAnnotation[]Optional labeled domain positions.
emptyJSX.ElementOptional empty-state content.
loadingbooleanfalseMarks retained accepted content busy.
tableimport("./chart-types.ts").ChartTableOptionsNative-table disclosure label and bounded page size.
classstringOptional class appended to the figure.
Native Solid/HTML attributes remain available and are omitted from this authored-prop view.