UNPKG

@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

39 lines (35 loc) 1.03 kB
import { color, commonLabel, data, discreteLegend } from "./common"; export const roseField = context => { var _a; const {cell: cell, spec: spec} = context; return spec.valueField = cell.radius || cell.angle, cell.color && (spec.categoryField = null !== (_a = cell.category) && void 0 !== _a ? _a : cell.color, spec.seriesField = cell.color), spec.outerRadius = .8, spec.innerRadius = .2, { spec: spec }; }; export const roseAxis = context => { const {spec: spec} = context; return spec.axes = [ { orient: "angle", domainLine: { visible: !1 }, grid: { visible: !1, alignWithLabel: !1 }, label: { visible: !0 } }, { orient: "radius", grid: { visible: !1, smooth: !0 } } ], { spec: spec }; }; export const pipelineRose = [ data, color, roseField, roseAxis, discreteLegend, commonLabel ]; //# sourceMappingURL=rose.js.map