@antv/g2
Version:
the Grammar of Graphics in Javascript
12 lines (8 loc) • 313 B
text/typescript
import { tree } from 'd3-hierarchy';
import { DataComponent as DC } from '../runtime';
import { hierarchyFunction } from './cluster';
export type TreeOptions = Omit<Record<string, any>, 'type'>;
export const Tree: DC<TreeOptions> = (options) => {
return hierarchyFunction(tree)(options);
};
Tree.props = {};