diff --git a/src/components/Chart/index.ts b/src/components/Chart/index.ts index c22517f..8e63028 100644 --- a/src/components/Chart/index.ts +++ b/src/components/Chart/index.ts @@ -48,3 +48,5 @@ export type { FunnelChartProps, FunnelStage } from './FunnelChart'; export { Waterfall } from './WaterfallChart'; export type { WaterfallChartProps, WaterfallSegment } from './WaterfallChart'; + +export { BAR_GROUP_GAP, BAR_ITEM_GAP } from './types'; diff --git a/src/components/Chart/types.ts b/src/components/Chart/types.ts index 5e7a5f1..68be75e 100644 --- a/src/components/Chart/types.ts +++ b/src/components/Chart/types.ts @@ -102,7 +102,9 @@ export function resolveSeries( return []; } +/** Fraction of each category slot left as gap; bars fill the remainder. */ export const BAR_GROUP_GAP = 0.12; +/** Horizontal px between side-by-side series bars within one category group. */ export const BAR_ITEM_GAP = 1; /** Minimum vertical spacing (px) between tick labels at 11px font. */