cione-comp-lib
Version:
`$ yarn add cione-comp-lib` 或者 `$ npm i cione-comp-lib -S`
60 lines (59 loc) • 1.65 kB
JavaScript
import "../../../../echarts/lib/echarts.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";
var Scatter3DSeries = SeriesModel.extend({
type: "series.scatter3D",
dependencies: ["globe", "grid3D", "geo3D"],
visualStyleAccessPath: "itemStyle",
hasSymbolVisual: true,
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) {
var data = this.getData();
var lastDim = data.dimensions[data.dimensions.length - 1];
text = data.get(lastDim, dataIndex);
}
return text;
},
formatTooltip: function(dataIndex) {
return formatTooltip(this, dataIndex);
},
defaultOption: {
coordinateSystem: "cartesian3D",
zlevel: -10,
progressive: 1e5,
progressiveThreshold: 1e5,
grid3DIndex: 0,
globeIndex: 0,
symbol: "circle",
symbolSize: 10,
blendMode: "source-over",
label: {
show: false,
position: "right",
distance: 5,
textStyle: {
fontSize: 14,
color: "#000",
backgroundColor: "rgba(255,255,255,0.7)",
padding: 3,
borderRadius: 3
}
},
itemStyle: {
opacity: 0.8
},
emphasis: {
label: {
show: true
}
},
animationDurationUpdate: 500
}
});
export { Scatter3DSeries as default };