recharts
Version:
React charts
46 lines (45 loc) • 1.36 kB
TypeScript
import * as React from 'react';
import { RechartsFill } from '../fill/RechartsFill';
import { PresentationAttributesWithProps } from '../util/types';
interface DotProps {
/**
* The fill of the dot. Either a color string, or a {@link RechartsFill} object with an SVG definition,
* such as a pattern or a gradient. Recharts renders the definition with a unique ID.
* Set the `color` of the fill object: there is no theme color to fall back to.
*
* @since 3.11
* @example <Dot fill={{ color: 'blue', definition: pattern(patterns.diagonal) }} />
*/
fill?: string | RechartsFill;
className?: string;
/**
* The x-coordinate of center in pixels.
*/
cx?: number;
/**
* The y-coordinate of center in pixels.
*/
cy?: number;
/**
* The radius of dot.
*/
r?: number | string;
clipDot?: boolean;
}
/**
* @public
*/
export type Props = Omit<PresentationAttributesWithProps<DotProps, SVGCircleElement>, 'fill'> & DotProps;
/**
* Renders a dot in the chart.
*
* This component accepts X and Y coordinates in pixels.
* If you need to position the rectangle based on your chart's data,
* consider using the {@link ReferenceDot} component instead.
*
* @param props
* @constructor
* @public
*/
export declare const Dot: (props: Props) => React.JSX.Element;
export {};