Skip to content

Forecast Handoff

Measured bars hand off to a dashed forecast at a "today" divider.

$149 once · every Pro piece

Customize

The forecast sits inside a widening confidence cone drawn as an ordered dither: stipple density is the probability, so the cone is dense along the forecast line, thins toward its edges and grows fainter as the horizon spreads the odds. A horizon dot and a quiet pill close the line. Today's bar is the one hot mark. The actuals can be bars or an area; the cone can also be a gradient wedge or a hatch. The tooltip switches from the measured value to the forecast with its likely range, and Shift + arrows jump between today and the horizon.

Install

npx shadcn@latest add @obsyde/forecast-handoff

Needs your licence key · Get Pro

Usage

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

import { ForecastHandoff } from '@/components/obsyde/ember/forecast-handoff/ForecastHandoff';

export function Example() {
  return (
    <ForecastHandoff
      actuals="bars"
      cone="dither"
      horizonDot
      legend="row"
      tooltip="panel"
    />
  );
}

Files

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

  • ember/forecast-handoff/ForecastHandoff.tsxcomponent
  • ember/forecast-handoff/forecast-handoff.cssstyles
  • ember/forecast-handoff/ForecastHandoffDemo.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'
actualsActuals'bars' | 'area''bars'
coneCone'dither' | 'gradient' | 'pattern' | 'none''dither'
horizonHorizonnumber12
uncertaintyUncertaintynumber1
horizonDotHorizon dotbooleantrue
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'
revealReveal'sweep' | 'cool' | 'rise' | 'fade' | 'none''sweep'
statusStatus'ready' | 'loading' | 'empty''ready'
heightHeightnumber270
pointsPointsnumber24
seedSeednumber6