Skip to content

Range Band

A line inside its envelope: min–max, a confidence interval, or Bollinger bands (a moving average ± kσ).

$149 once · every Pro piece

Customize

The band fills solid, as a gradient or with a hatch, and fades out at both ends instead of stopping. Scrub it and a range capsule rises at the cursor: a soft rounded column from low to high with a dot on each edge and the line's own dot between them, so the spread reads as a physical span; the tooltip says "low – high". Readings that break out of the band are the only heat on the chart. The legend isolates or hides the line or the band, and the axis tweens to fit.

Install

npx shadcn@latest add @obsyde/range-band

Needs your licence key · Get Pro

Usage

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

import { RangeBand } from '@/components/obsyde/ember/range-band/RangeBand';

export function Example() {
  return (
    <RangeBand
      fill="gradient"
      capsule
      breaches
      legend="row"
      tooltip="panel"
    />
  );
}

Files

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

  • ember/range-band/RangeBand.tsxcomponent
  • ember/range-band/range-band.cssstyles
  • ember/range-band/RangeBandDemo.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/Axis.tsxshared
  • ember/viz-kit/annotations.tsxshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
modeBand'minmax' | 'confidence' | 'bollinger''minmax'
fillFill'gradient' | 'solid' | 'pattern''gradient'
edgesDashed edgesbooleanfalse
breachesBreakoutsbooleantrue
capsuleRange capsulebooleantrue
legendLegend'row' | 'list' | 'none''row'
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'
heightHeightnumber260
pointsPointsnumber40
seedSeednumber2