@antv/g2
Version:
the Grammar of Graphics in Javascript
16 lines (12 loc) • 374 B
text/typescript
import { DataComponent as DC } from '../runtime';
import { Arc as ArcLayout } from '../data/utils/arc';
export type ArcOptions = Omit<Record<string, any>, 'type'>;
/**
* For arc diagram(edge with weight) or chord diagram(with weight)
*/
export const Arc: DC<ArcOptions> = (options) => {
return (data) => {
return ArcLayout(options)(data);
};
};
Arc.props = {};