Rocky_Mountain_Vending/.pnpm-store/v10/files/52/fd52762e450de048bb066bb0c6d7fd76894a52c7f73e22519bf1a5a1bce132fdc49b43dbf6769189ebf425d6b8b3f0f73176efdaa52474bc7746cb803d71a2
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

53 lines
1.7 KiB
Text

/**
* @fileOverview Render a group of error bar
*/
import React, { SVGProps } from 'react';
import { Props as XAxisProps } from './XAxis';
import { Props as YAxisProps } from './YAxis';
import { D3Scale, DataKey } from '../util/types';
import { BarRectangleItem } from './Bar';
import { LinePointItem } from './Line';
import { ScatterPointItem } from './Scatter';
export interface ErrorBarDataItem {
x: number;
y: number;
value: number;
errorVal?: number[] | number;
}
export type ErrorBarDataPointFormatter = (entry: BarRectangleItem | LinePointItem | ScatterPointItem, dataKey: DataKey<any>) => ErrorBarDataItem;
interface InternalErrorBarProps {
xAxis?: Omit<XAxisProps, 'scale'> & {
scale: D3Scale<string | number>;
};
yAxis?: Omit<YAxisProps, 'scale'> & {
scale: D3Scale<string | number>;
};
data?: any[];
layout?: 'horizontal' | 'vertical';
dataPointFormatter?: ErrorBarDataPointFormatter;
/** The offset between central and the given coordinate, often set by <Bar/> */
offset?: number;
}
interface ErrorBarProps extends InternalErrorBarProps {
dataKey: DataKey<any>;
/** the width of the error bar ends */
width?: number;
/**
* Only used for ScatterChart with error bars in two directions.
* Only accepts a value of "x" or "y" and makes the error bars lie in that direction.
*/
direction?: 'x' | 'y';
}
export type Props = SVGProps<SVGLineElement> & ErrorBarProps;
export declare class ErrorBar extends React.Component<Props> {
static defaultProps: {
stroke: string;
strokeWidth: number;
width: number;
offset: number;
layout: string;
};
static displayName: string;
render(): React.JSX.Element;
}
export {};