UNPKG

reaviz

Version:

Data Visualization using React

67 lines (66 loc) 1.42 kB
import { default as React, FC, SVGTextElementAttributes } from 'react'; export interface RadialAxisTickLabelProps extends Omit<SVGTextElementAttributes<SVGTextElement>, 'format' | 'onClick'> { /** * Data to render. */ data: any; /** * Size of the line. */ lineSize: number; /** * Color of the text. * * @default '#71808d' */ fill: string; /** * Font size of the text. * * @default 11 */ fontSize: number; /** * Rotation of the text. */ rotation: number; /** * Font family of the text. * * @default 'sans-serif' */ fontFamily: string; /** * Index of the tick. */ index: number; /** * Padding of the tick. * * @default 15 */ padding: number; /** * Point of the tick. */ point: any; /** * Auto rotate the text. * * @default true */ autoRotate: boolean; /** * Format of the label. */ format?: (value: any, index: number) => any | string; /** * Format tooltip title on hover label. */ formatTooltip?: (value: any, index: number) => any | string; /** * Click handler for the label. */ onClick?: (event: React.MouseEvent<SVGGElement>, value: any) => void; } export declare const RadialAxisTickLabel: FC<Partial<RadialAxisTickLabelProps>>;