nuke-biz-custom-chart
Version:
custom-chart
29 lines (21 loc) • 675 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var Area = function Area() {
_classCallCheck(this, Area);
};
Area.draw = function (chart, props) {
var position = props.position,
color = props.color,
shape = props.shape,
style = props.style;
var area = chart.area();
color && area.color(color);
position && area.position(position);
shape && area.shape(shape);
style && area.style(style);
};
exports.default = Area;
module.exports = exports["default"];