reaviz
Version:
Data Visualization using React
8 lines (6 loc) • 352 B
TypeScript
import { ChartNestedDataShape, ChartInternalNestedDataShape } from './types';
export type StackTypes = 'default' | 'expand' | 'diverging';
/**
* Builds a stack dataset from the standard data format.
*/
export declare function buildBarStackData(data?: ChartNestedDataShape[], offset?: StackTypes, direction?: string): ChartInternalNestedDataShape[];