Line3DSeries.js
793 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import * as echarts from 'echarts/lib/echarts';
import formatTooltip from '../common/formatTooltip';
import createList from '../common/createList';
var Line3DSeries = echarts.SeriesModel.extend({
type: 'series.line3D',
dependencies: ['grid3D'],
visualStyleAccessPath: 'lineStyle',
visualDrawType: 'stroke',
getInitialData: function (option, ecModel) {
return createList(this);
},
formatTooltip: function (dataIndex) {
return formatTooltip(this, dataIndex);
},
defaultOption: {
coordinateSystem: 'cartesian3D',
zlevel: -10,
// Cartesian coordinate system
grid3DIndex: 0,
lineStyle: {
width: 2
},
animationDurationUpdate: 500
}
});
export default Line3DSeries;