@antv/g2
Version:
the Grammar of Graphics in Javascript
10 lines (9 loc) • 383 B
TypeScript
import { TransformComponent as TC, G2Mark } from '../runtime';
import { GroupTransform } from '../spec';
export type GroupNOptions = Omit<GroupTransform & {
groupBy?: (I: number[], mark: G2Mark, options?: Record<string, any>) => number[][];
}, 'type'>;
/**
* The Group transform group data by x and y channels, and aggregate.
*/
export declare const GroupN: TC<GroupNOptions>;