UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

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