Last active
July 12, 2019 06:19
-
-
Save waitkafuka/cbd80304e9ea57ff801e7f1c20b1fbc7 to your computer and use it in GitHub Desktop.
echarts利用uv绘制圆柱
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
series: [{ | |
type: "surface", | |
name: "围栏模型", | |
parametric: true, | |
itemStyle: { | |
opacity: 1, | |
color: "#313695" | |
}, | |
parametricEquation: { | |
u: { | |
min: 0, | |
max: 2 * Math.PI, | |
step: 0.1 | |
}, | |
v: { | |
min: 0, | |
max: height, | |
step: height / 10 | |
}, | |
x: function(u, v) { | |
return 100 - Math.cos(u) * 10; | |
}, | |
y: function(u, v) { | |
return 100 - Math.sin(u) * 10; | |
}, | |
z: function(u, v) { | |
return v; | |
} | |
} | |
}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment