group.d.ts 414 B

12345678910
  1. import { TransformComponent as TC, G2Mark } from '../runtime';
  2. import { GroupTransform } from '../spec';
  3. export type GroupOptions = Omit<GroupTransform & {
  4. channels?: string | string[];
  5. groupBy?: (I: number[], mark: G2Mark, options?: Record<string, any>) => number[][];
  6. }, 'type'>;
  7. /**
  8. * The Group transform group data by x and y channels, and aggregate.
  9. */
  10. export declare const Group: TC<GroupOptions>;