Skip to content

Ribbon Chart

Stacked bars per period, re-ranked every period with the leader on top, joined by flowing ribbons that carry each series from one period to the next.

$149 once · every Pro piece

Customize

A change of rank reads as two ribbons crossing. Grey ladder at rest, with an optional texture per series on the ribbons. Hover a ribbon or a bar and that series runs hot from end to end while the others step back; the period under the pointer gets a soft wash instead of a crosshair line and the panel lists it by rank. Rank and name sit at the right end of each band. A legend click drops a series and every stack re-ranks on a 500ms morph; the arrow keys step through the periods.

Install

npx shadcn@latest add @obsyde/ribbon-chart

Needs your licence key · Get Pro

Usage

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

import { RibbonChart } from '@/components/obsyde/ember/ribbon-chart/RibbonChart';

export function Example() {
  return (
    <RibbonChart series={4} order="rank" />
  );
}

Files

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

  • ember/ribbon-chart/RibbonChart.tsxcomponent
  • ember/ribbon-chart/ribbon-chart.cssstyles
  • ember/ribbon-chart/RibbonChartDemo.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/Legend.tsxshared
  • ember/viz-kit/Grid.tsxshared
  • ember/viz-kit/demo.tsxshared
  • ember/viz-kit/demo.cssshared
  • ember/viz-kit/Axis.tsxshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
seriesSeriesnumber4
periodsPeriodsnumber6
orderOrder'rank' | 'fixed''rank'
barWidthBar widthnumber0.36
patternPattern'none' | 'series' | 'diagonal-up' | 'diagonal-down' | 'dots' | 'vertical' | 'crosshatch''none'
ribbonRibbons'soft' | 'strong''soft'
endLabelsEnd labelsbooleantrue
legendLegend'row' | 'none''row'
tooltipTooltip'panel' | 'none''panel'
backgroundBackground'grid' | 'none''grid'
statusStatus'ready' | 'loading' | 'empty''ready'
valueLabelsValue labelsbooleanfalse
heightHeightnumber300
seedSeednumber5