4.2.0
CoreChart

Chart API

Every prop of the 6 parts Chart exports, generated from the package manifest.

import { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from '@oceanic-hub/brand-system'
Layer
core — shadcn-derived primitives.
Exports
ChartContainer · ChartLegend · ChartLegendContent · ChartStyle · ChartTooltip · ChartTooltipContenttypes: ChartConfig · ChartContainerProps · ChartLegendContentProps · ChartSeries · ChartTooltipContentProps · TooltipFormatter · TooltipLabelFormatter · TooltipPayload
Variants
  • indicator: dashed | dot | line
Contract
packages/brand-system/src/components/chart.contract.test-d.ts
Demos
7 on the Chart page — rendered live, hydrated
Source
packages/brand-system/src/components/chart.tsx

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

ChartContainer

ChartContainerProps

Prop

Type

Also accepts everything from React.ComponentProps<'div'>.

ChartLegend

Re-exported from recharts. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.

Prop

Type

ChartLegendContent

ChartLegendContentProps

Prop

Type

Also inherited from the primitive underneath — forwarded, not declared here, and accepted alongside the props above. DOM attributes are accepted too and omitted here.

Prop

Type

ChartStyle

{ id: string; config: ChartConfig }

Prop

Type

ChartTooltip

Re-exported from recharts. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.

Prop

Type

ChartTooltipContent

ChartTooltipContentProps

Prop

Type

On this page