/**
 * Bar chart type definitions
 * @countermeasure/web-components/charts/bar/types
 */

import type { SeriesChartConfig } from '../types'

export interface BarChartConfig extends SeriesChartConfig {
  /**
   * Stack series on top of each other instead of grouping side-by-side.
   * @default false
   */
  stacked?: boolean
  /**
   * Render bars horizontally (categories on Y axis, values on X axis).
   * @default false
   */
  horizontal?: boolean
  /**
   * Corner radius applied to each bar in pixels.
   * @default 0
   */
  barRadius?: number
  /**
   * Fractional gap between bars within a category, 0–1.
   * @default 0.1
   */
  barGap?: number
}
