UNPKG

@vectara/vectara-ui

Version:

Vectara's design system, codified as a React and Sass component library

26 lines (25 loc) 887 B
import { PatchColor } from "../patch/VuiPatch"; export type LineChartSeries = { dataKey: string; name?: string; color?: PatchColor; }; export type LineChartVariant = "line" | "area" | "stacked-area"; type Props = { data: Array<Record<string, string | number>>; categoryKey: string; series: LineChartSeries[]; variant?: LineChartVariant; curved?: boolean; showPoints?: boolean; height?: number; showLegend?: boolean; showGrid?: boolean; showTooltip?: boolean; syncId?: string; syncMethod?: "index" | "value"; formatValue?: (value: number) => string; "data-testid"?: string; }; export declare const VuiLineChart: ({ data, categoryKey, series, variant, curved, showPoints, height, showLegend, showGrid, showTooltip, syncId, syncMethod, formatValue, ...rest }: Props) => import("react/jsx-runtime").JSX.Element; export {};