/**
 * Sparkline chart type definitions
 * @countermeasure/web-components/charts/sparkline/types
 */

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

export interface SparklineChartConfig extends BaseChartConfig {
  /** Numeric series to plot inline. */
  data: number[]
  /** Stroke color (defaults to the current theme accent). */
  color?: string
  /** Fill color used for the area or bar fill. */
  fillColor?: string
  /**
   * Stroke width in pixels.
   * @default 1.5
   */
  lineWidth?: number
  /**
   * Show a dot at the most recent value.
   * @default false
   */
  showEndDot?: boolean
  /**
   * Highlight the min and max points with marker dots.
   * @default false
   */
  showMinMax?: boolean
  /**
   * Visual style of the sparkline.
   * @default 'line'
   */
  type?: 'line' | 'bar'
}
