nuke-biz-custom-chart
Version:
custom-chart
30 lines (23 loc) • 696 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 Axis = function Axis() {
_classCallCheck(this, Axis);
};
Axis.draw = function (chart, props) {
var _props$name = props.name,
name = _props$name === undefined ? '' : _props$name,
_props$label = props.label,
label = _props$label === undefined ? {
fontSize: 14
} : _props$label,
grid = props.grid;
chart.axis(name, {
label: label,
grid: grid
});
};
exports.default = Axis;
module.exports = exports['default'];