import { Intergalactic } from 'intergalactic/core'; import { Flex } from 'intergalactic/flex-box'; import { interpolateValue } from '../../utils'; import { ScaleLinear, ScaleTime } from 'd3-scale'; import { CurveFactory } from 'd3-shape'; import { BaseChartProps } from './AbstractChart.type'; import { LegendItemKey } from '../ChartLegend/LegendItem/LegendItem.type'; type AreaItem = { x: number; y0: number; y1: number; }; export type LineChartData = Array>; export type LineChartProps = BaseChartProps & { groupKey: string; area?: Record; xScale?: ScaleLinear | ScaleTime; yScale?: ScaleLinear; showDots?: boolean; curve?: CurveFactory; areaCurve?: CurveFactory; }; export type LineChartType = Intergalactic.Component; export {};