Skip to content

Line Chart

Up to six series drawn in greys of different strength, never a rainbow.

$149 once · every Pro piece

Customize

Focus one from the legend, with a click or Up and Down on the plot, and it alone turns accent while the rest step back. A hairline crosshair snaps to the nearest row with a floating panel or a corner readout, the line around the cursor stays bright while the rest dims, and names sit at the right edge, nudged apart. Optional layers: the kiln sky (a warm glow rising off the lead line), a gradient or hatched fill, a trend line, a projection with a widening cone, a Bollinger envelope, dashed min, max and average lines with value pills, a threshold past which every line runs hot, event badges that fan out, a dashed previous period, a dashed unfinished tail, drag-to-select a span, a brush strip that zooms, a live stream with a pilot light, and loading and empty states on the same instance.

Install

npx shadcn@latest add @obsyde/line-chart

Needs your licence key · Get Pro

Usage

Import it from where the CLI puts it, or copy the files below by hand.

import { LineChart } from '@/components/obsyde/ember/line-chart/LineChart';

export function Example() {
  return (
    <LineChart series={2} />
  );
}

Files

What you get with Pro: plain React, TypeScript and CSS, with no dependencies.

  • ember/line-chart/LineChart.tsxcomponent
  • ember/line-chart/line-chart.cssstyles
  • ember/line-chart/LineChartDemo.tsxdemo
  • ember/viz-kit/viz-kit.cssshared
  • ember/viz-kit/Tooltip.tsxshared
  • ember/viz-kit/focus.tsshared
  • ember/viz-kit/patterns.tsxshared
  • ember/viz-kit/roll.tsshared
  • ember/shared/rolling-number.cssshared
  • ember/shared/spring.tsshared
  • ember/shared/accent.tsshared
  • ember/viz-kit/scale.tsshared
  • ember/viz-kit/motion.tsshared
  • ember/viz-kit/chart.tsxshared
  • ember/shared/ember.cssshared
  • ember/viz-kit/touch.tsshared
  • ember/viz-kit/keyboard.tsshared
  • ember/viz-kit/size.tsshared
  • ember/viz-kit/States.tsxshared
  • ember/viz-kit/shape.tsshared
  • ember/viz-kit/series.tsxshared
  • ember/viz-kit/Legend.tsxshared
  • ember/viz-kit/Grid.tsxshared
  • ember/viz-kit/demo.tsxshared
  • ember/viz-kit/demo.cssshared
  • ember/viz-kit/Brush.tsxshared
  • ember/viz-kit/Axis.tsxshared
  • ember/viz-kit/annotations.tsxshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
seriesSeriesnumber2
focusedFocused series (-1 none)number-1
legendLegend'focus' | 'toggle' | 'list' | 'none''focus'
endLabelsEnd labelsbooleantrue
areaFill'none' | 'gradient' | 'pattern''none'
skyKiln skybooleanfalse
glowGlowbooleanfalse
markersMarkers'none' | 'ring' | 'dot''none'
trendTrend'none' | 'dashed' | 'gradient''none'
projectionProjection'none' | 'regression' | 'target''none'
bandEnvelopebooleanfalse
refLinesReference lines'none' | 'min-max' | 'avg' | 'median' | 'all''none'
thresholdThreshold'none' | 'above' | 'below''none'
thresholdValueThreshold valuenumber70
annotationsAnnotationsbooleanfalse
compareComparebooleanfalse
tailDashed tailbooleanfalse
selectionSelect a spanbooleanfalse
brushBrush zoombooleanfalse
yTicksY ticksnumber4
showAxisAxesbooleantrue
tooltipTooltip'panel' | 'corner' | 'none''panel'
crosshairCrosshair'solid' | 'dashed' | 'gradient' | 'none''solid'
dotsDots'halo' | 'ring' | 'none''halo'
patternPattern'none' | 'diagonal-up' | 'diagonal-down' | 'dots' | 'vertical' | 'crosshatch''none'
backgroundBackground'grid' | 'dots' | 'hatch' | 'none''grid'
curveCurve'monotone' | 'linear' | 'catmull' | 'step''monotone'
revealReveal'sweep' | 'cool' | 'rise' | 'fade' | 'none''sweep'
statusStatus'ready' | 'loading' | 'empty''ready'
valueLabelsValue labelsbooleanfalse
liveLivebooleanfalse
heightHeightnumber260
pointsPointsnumber24
seedSeednumber11