UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

15 lines (11 loc) 373 B
import { TransformComponent as TC } from '../runtime'; import { SortYTransform } from '../spec'; import { Sort } from './sort'; export type SortYOptions = Omit<SortYTransform, 'type'>; /** * Sort domain of x scale of mark groups by groups. */ export const SortY: TC<SortYOptions> = (options = {}) => { return Sort({ ...options, channel: 'y' }); }; SortY.props = {};