@visactor/vchart
Version:
charts lib based @visactor/VGrammar
18 lines (14 loc) • 493 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.sunburstLayout = void 0;
const vlayouts_1 = require("@visactor/vlayouts"), sunburstLayout = (data, op) => {
if (!data) return data;
const options = op(), {width: width, height: height} = options;
return new vlayouts_1.SunburstLayout(options).layout(data, {
width: width,
height: height
});
};
exports.sunburstLayout = sunburstLayout;
//# sourceMappingURL=sunburst.js.map