UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

16 lines (12 loc) 439 B
import { TransformComponent as TC } from '../runtime'; import { SelectYTransform } from '../spec'; import { Select } from './select'; export type SelectYOptions = Omit<SelectYTransform, 'type'>; /** * The selectY transform filter index by y channel. */ export const SelectY: TC<SelectYOptions> = (options = {}) => { const { selector, ...rest } = options; return Select({ channel: 'y', selector, ...rest }); }; SelectY.props = {};