@adobe/react-spectrum-charts
Version:
Declarative library for composing Spectrum visualizations in React.
15 lines • 774 B
TypeScript
import { ChartChildElement } from '../types';
export interface ThumbnailPopoverConfig {
/** The names of thumbnail marks that should trigger the popover, e.g. ['axis0AxisThumbnail0'] */
thumbnailNames: string[];
/** The dimension field used to find the matching bar item, e.g. 'category' */
dimensionField: string;
/** The bar mark name used to trigger the popover, e.g. 'bar0' */
barMarkName: string;
}
/**
* Finds the first bar mark with a ChartPopover child and collects all AxisThumbnail
* names on axes with hasPopover=true, returning a config that links them together.
*/
export default function useAxisThumbnailPopover(children: ChartChildElement[]): ThumbnailPopoverConfig | undefined;
//# sourceMappingURL=useAxisThumbnailPopover.d.ts.map