4.2.0
PatternsCharts

Charts API

Every prop of the 4 parts Charts exports, generated from the package manifest.

import { Funnel, MiniBarChart, MiniLineChart, Sparkline } from '@oceanic-hub/brand-system'
Layer
patterns — Generic composites — the shared shell and the shared status vocabulary that make every product inherit the look. The reason this package exists.
Exports
Funnel · MiniBarChart · MiniLineChart · Sparklinetypes: ChartRole · FunnelProps · FunnelStage · MiniBarChartProps · MiniBarDatum · MiniBarDatumBase · MiniLineChartProps · SparklineProps
Variants
  • color: brand | done | info | neutral | stuck | working
  • color2: brand | done | info | neutral | stuck | working
Contract
packages/brand-system/src/components/charts.contract.test-d.ts
Demos
7 on the Charts page — rendered live, hydrated
Source
packages/brand-system/src/components/charts.tsx

Generated from manifest/component-manifest.json, so it cannot drift from the source. For what Charts is for, how it composes and what it looks like, see Charts.

Funnel

FunnelProps

Prop

Type

Also accepts everything from React.HTMLAttributes<HTMLDivElement>.

MiniBarChart

MiniBarChartProps

Prop

Type

MiniLineChart

MiniLineChartProps

Prop

Type

Sparkline

SparklineProps

Prop

Type

On this page