UNPKG

rumble-charts

Version:

Truly declarative React charts components

19 lines (18 loc) 769 B
import type { ReactElement, ReactNode } from 'react'; import type { CommonProps, TransformMethod } from './types'; export declare type TransformProps = { className?: string; /** * Possible string values: `stack`, `stackNormalized`, `sort`, `unstack`, * `transpose`, `rotate`, `reverse`. Also you can define it as function that * receives props as an object, transforms it somehow and returns changes props as an object. */ method: TransformMethod | TransformMethod[]; children: ReactNode; } & CommonProps; /** * Transforms `series` data according chosen `method`. * * As a wrapper it takes `series` obtained from its parent and gives it to its children. */ export declare function Transform(props: TransformProps): ReactElement;