export interface TimeChartItem {
  date: Date;
  dateLabel?: string;
  value: number;
}

export interface ChartMargin {
  top?: number;
  right?: number;
  bottom?: number;
  left?: number;
}

export interface ChartOffset {
  x?: number;
  y?: number;
}

export interface TimeChartDataItem {
  items: Array<TimeChartItem>;
  name: string;
  units?: string;
  color?: string;
  valueFormatter?: (value: number) => string;
}

export type TimeChartData = Array<TimeChartDataItem>;
