fybdp-d3-kg
Version:
Knowledge Graph using React and D3.js
7 lines (6 loc) • 364 B
TypeScript
import { ChartNestedDataShape, ChartInternalNestedDataShape } from './types';
export declare 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[];