@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
20 lines (16 loc) • 567 B
JavaScript
import { arrayData, color } from "./common";
export const gaugeField = context => {
const {spec: spec, cell: cell} = context;
return spec.valueField = cell.size, spec.categoryField = cell.color, {
spec: spec
};
};
export const gaugeDisplayConf = context => {
const {spec: spec} = context;
return spec.outerRadius = .8, spec.innerRadius = .5, spec.startAngle = -180, spec.endAngle = 0,
{
spec: spec
};
};
export const pipelineGauge = [ arrayData, color, gaugeField, gaugeDisplayConf ];
//# sourceMappingURL=gauge.js.map