@visactor/vmind
Version:
<div align="center"> <a href="https://github.com/VisActor#gh-light-mode-only" target="_blank"> <img alt="VisActor Logo" width="200" src="https://github.com/VisActor/.github/blob/main/profile/logo_500_200_light.svg"/> </a> <a href="https://githu
13 lines (10 loc) • 445 B
JavaScript
import { color, commonLabel, data, discreteLegend } from "./common";
export const pieField = context => {
const {cell: cell, spec: spec} = context;
return spec.valueField = cell.angle || cell.value, (cell.color || cell.category) && (spec.categoryField = cell.color || cell.category),
{
spec: spec
};
};
export const pipelinePie = [ data, color, pieField, discreteLegend, commonLabel ];
//# sourceMappingURL=pie.js.map