UNPKG

cione-comp-lib

Version:

`$ yarn add cione-comp-lib` 或者 `$ npm i cione-comp-lib -S`

60 lines (59 loc) 1.69 kB
import "../../../../echarts/lib/echarts.mjs"; import componentShadingMixin from "../../component/common/componentShadingMixin.mjs"; import formatUtil from "../../util/format.mjs"; import formatTooltip from "../common/formatTooltip.mjs"; import createList from "../common/createList.mjs"; import SeriesModel from "../../../../echarts/lib/model/Series.mjs"; import { merge } from "../../../../zrender/lib/core/util.mjs"; var Bar3DSeries = SeriesModel.extend({ type: "series.bar3D", dependencies: ["globe"], visualStyleAccessPathvisu: "itemStyle", getInitialData: function(option, ecModel) { return createList(this); }, getFormattedLabel: function(dataIndex, status, dataType, dimIndex) { var text = formatUtil.getFormattedLabel(this, dataIndex, status, dataType, dimIndex); if (text == null) { text = this.getData().get("z", dataIndex); } return text; }, formatTooltip: function(dataIndex) { return formatTooltip(this, dataIndex); }, defaultOption: { coordinateSystem: "cartesian3D", globeIndex: 0, grid3DIndex: 0, zlevel: -10, bevelSize: 0, bevelSmoothness: 2, onGridPlane: "xy", shading: "color", minHeight: 0, itemStyle: { opacity: 1 }, label: { show: false, distance: 2, textStyle: { fontSize: 14, color: "#000", backgroundColor: "rgba(255,255,255,0.7)", padding: 3, borderRadius: 3 } }, emphasis: { label: { show: true } }, animationDurationUpdate: 500 } }); merge(Bar3DSeries.prototype, componentShadingMixin); var Bar3DSeries$1 = Bar3DSeries; export { Bar3DSeries$1 as default };