Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
706 Bytes
import * as React from 'react';
import { forwardRef } from 'react';
import { arrayTooltipSearcher } from '../state/optionsSlice';
import { CartesianChart } from './CartesianChart';
import { CartesianChartProps, TooltipEventType } from '../util/types';
const allowedTooltipTypes: ReadonlyArray<TooltipEventType> = ['axis'];
export const LineChart = forwardRef<SVGSVGElement, CartesianChartProps>((props: CartesianChartProps, ref) => {
return (
<CartesianChart
chartName="LineChart"
defaultTooltipEventType="axis"
validateTooltipEventTypes={allowedTooltipTypes}
tooltipPayloadSearcher={arrayTooltipSearcher}
categoricalChartProps={props}
ref={ref}
/>
);
});