import * as React from "react"; export interface GaugeChartProps { /** * Used for the identification of the div surrounding the chart */ id?: string | undefined; /** * Add className to the div container */ className?: string | undefined; /** * Add style to the div container * @default { width: '100%' } */ style?: React.CSSProperties | undefined; /** * Margin for the chart inside the containing SVG element * @default 0.05 */ marginInPercent?: number | undefined; /** * Corner radius for the elements in the chart * @default 6 */ cornerRadius?: number | undefined; /** * The number of elements displayed in the arc * @default 3 */ nrOfLevels?: number | undefined; /** * The number where the pointer should point to (between 0 and 1) * @default 0.4 */ percent?: number | undefined; /** * The distance between the elements in the arc * @default 0.05 */ arcPadding?: number | undefined; /** * The thickness of the arc * @default 0.2 */ arcWidth?: number | undefined; /** * An array specifying the length of each individual arc. If this prop is set, the nrOfLevels prop will have no effect */ arcsLength?: number[] | undefined; /** * An array of colors in HEX format displayed in the arc * @default ["#00FF00", "#FF0000"] */ colors?: string[] | undefined; /** * The color of the text * @default "#FFFFFF" */ textColor?: string | undefined; /** * The color of the needle triangle * @default "#464A4F" */ needleColor?: string | undefined; /** * The color of the circle at the base of the needle * @default "#464A4F" */ needleBaseColor?: string | undefined; /** * Whether or not to hide the percentage display * @default false */ hideText?: boolean | undefined; /** * Whether or not to animate the needle when loaded * @default true */ animate?: boolean | undefined; /** * The font size of gauge text * @default null */ fontSize?: string | undefined; /** * Duration in ms for the needle animation * @default 3000 */ animateDuration?: number | undefined; /** * Delay in ms before starting the needle animation * @default 500 */ animDelay?: number | undefined; /** * Format you own text value * @example * ``` * (value) => value + '%' * ``` * @default null */ formatTextValue?: ((value: string) => string) | undefined; /** * Custom text label textComponent * @default null */ textComponent?: React.ReactElement | undefined; /** * Add `className` to the text component container * @default null */ textComponentContainerClassName?: string | undefined; /** * Needle arc cornerRadius * @default 0.55 */ needleScale?: number | undefined; /** * Custom needle component * * Note: Make sure to rotate the needle as per the percentage value * @default null */ customNeedleComponent?: React.ReactElement | undefined; /** * Add `className` to the custom needle container * @default null */ customNeedleComponentClassName?: string | undefined; /** * Add `style` to custom needle container div * @default null */ customNeedleStyle?: React.CSSProperties | undefined; } export default function GaugeChart(props: GaugeChartProps): React.ReactElement;