const defaultColors = ['#3b82f6', '#22c55e', '#f59e0b', '#8b5cf6', '#ec4899']

export function getSeriesColor(index: number, color?: string): string {
  return color ?? defaultColors[index % defaultColors.length]!
}

export { defaultColors }
