UNPKG

@alicloud/cloud-charts

Version:

![](https://img.shields.io/npm/v/@alicloud/cloud-charts?color=%23ff8200)

54 lines (46 loc) 1.33 kB
'use strict'; import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose"; import { Line } from '../Wline'; import errorWrap from '../common/errorWrap'; import themes from '../themes'; export var Miniline = /*#__PURE__*/function (_Line) { _inheritsLoose(Miniline, _Line); function Miniline() { var _this; for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } _this = _Line.call.apply(_Line, [this].concat(args)) || this; _this.chartName = 'G2MiniLine'; return _this; } var _proto = Miniline.prototype; _proto.getDefaultConfig = function getDefaultConfig() { var lineWidth = themes['widgets-line-width']; return { padding: [lineWidth, lineWidth, lineWidth, lineWidth], colors: themes.category_12, areaColors: [], xAxis: { visible: false, type: 'time', // 默认为线性 mask: 'auto' // 上述type为time时,此字段生效 }, yAxis: { visible: false, max: null, min: null }, legend: false, tooltip: false, area: false, spline: false, symbol: false, label: false }; }; return Miniline; }(Line); var Wminiline = errorWrap(Miniline); export default Wminiline;