Skip to content

Barcode Stack

A category breakdown drawn as a stacked progress bar of hairlines.

$149 once · every Pro piece

Customize

Each category is a run of thin vertical strokes in the grey ladder, what is left of the limit is a run of ghost strokes, and strokes past the target run hot. On mount the strokes rise in a wave from left to right. The pointer drags a comb through the bar: strokes near it stretch up on a spring and settle behind it. Point at a run, or Tab in and use the arrow keys, to isolate it; the readout rolls from total spend to that category and a panel gives its share. Labels above the runs thin themselves so none collide. As one stacked bar, or one barcode row per category.

Install

npx shadcn@latest add @obsyde/barcode-stack

Needs your licence key · Get Pro

Usage

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

import { BarcodeStack } from '@/components/obsyde/ember/barcode-stack/BarcodeStack';

export function Example() {
  return (
    <BarcodeStack layout="stack" target={0.7} />
  );
}

Files

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

  • ember/barcode-stack/BarcodeStack.tsxcomponent
  • ember/barcode-stack/barcode-stack.cssstyles
  • ember/barcode-stack/BarcodeStackDemo.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/state-messages.tsxshared
  • ember/viz-kit/stage.tsxshared
  • ember/viz-kit/stage.cssshared
  • ember/viz-kit/Legend.tsxshared
  • ember/viz-kit/demo.tsxshared
  • ember/viz-kit/demo.cssshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
layoutLayout'stack' | 'rows''stack'
textureTexture'hairline' | 'dense' | 'dashed''hairline'
categoriesCategoriesnumber5
spentSpentnumber0.78
targetTargetnumber0.7
legendLegend'row' | 'none''row'
tooltipTooltip'panel' | 'none''panel'
statusStatus'ready' | 'loading' | 'empty''ready'
seedSeednumber4