import type { AgBarSeriesStyle } from '../../series/cartesian/barOptions'; import type { AgVolumeProfileSelectionOptions, AgVolumeProfileTotalSegmentOptions } from './priceVolumeOptions'; export interface AgVolumeProfileChartPreset { /** The key holding the price of each level in the data. * * Default: `'price'` */ priceKey?: string; /** The key used to retrieve the up volume of each level from the data. */ upKey: string; /** The key used to retrieve the down volume of each level from the data. */ downKey: string; /** Styling for the bars showing the up volume of each level. */ up?: AgBarSeriesStyle; /** Styling for the bars showing the down volume of each level. */ down?: AgBarSeriesStyle; /** The height of each price level, in price units. * * If not set, the smallest gap between the prices in the data is used. */ tickSize?: number; /** A fixed-width column showing each level's total volume, set between the price axis and the up and down bars. */ totalSegment?: AgVolumeProfileTotalSegmentOptions; /** Selection of price levels. */ selection?: AgVolumeProfileSelectionOptions; }