import { strokeDashTypes } from "@fishbot/chart-core"; import { ScaleContinuousNumeric } from "d3-scale"; import { CurveFactory } from "d3-shape"; import { Component } from "react"; export interface AreaSeriesProps { /** * The base y value to draw the area to. */ readonly baseAt?: number | ((yScale: ScaleContinuousNumeric, d: [number, number], moreProps: any) => number); readonly canvasClip?: (context: CanvasRenderingContext2D, moreProps: any) => void; /** * Whether to connect the area between undefined data points. */ readonly connectNulls?: boolean; /** * Color, gradient, or pattern to use for fill. */ readonly fillStyle?: string | ((context: CanvasRenderingContext2D, moreProps: any) => string | CanvasGradient | CanvasPattern); /** * A factory for a curve generator for the area and line. */ readonly curve?: CurveFactory; /** * Color, gradient, or pattern to use for the stroke. */ readonly strokeStyle?: string; /** * Stroke dash. */ readonly strokeDasharray?: strokeDashTypes; /** * Stroke width. */ readonly strokeWidth?: number; /** * Selector for data to plot. */ readonly yAccessor: (data: any) => number | undefined; } /** * `AreaSeries` component is similar to a `LineSeries` but with the area between the line and base filled. */ export declare class AreaSeries extends Component { static defaultProps: Partial; render(): JSX.Element; }