@adobe/react-spectrum-charts
Version:
Declarative library for composing Spectrum visualizations in React.
12 lines • 812 B
TypeScript
import { JSXElementConstructor, ReactElement } from 'react';
import { BarOptions } from '@spectrum-charts/vega-spec-builder';
import { ChartPopoverElement, ChartTooltipElement } from '../dialogs';
import { Children, OnClickCallback } from '../util.types';
import { BarAnnotationElement, TrendlineElement } from './supplemental';
export interface BarProps extends Omit<BarOptions, 'barAnnotations' | 'chartPopovers' | 'chartTooltips' | 'hasOnClick' | 'markType' | 'trendlines'> {
children?: Children<BarAnnotationElement | ChartPopoverElement | ChartTooltipElement | TrendlineElement>;
/** Callback that will be run when a point/section is clicked */
onClick?: OnClickCallback;
}
export type BarElement = ReactElement<BarProps, JSXElementConstructor<BarProps>>;
//# sourceMappingURL=bar.types.d.ts.map