Skip to content

Instantly share code, notes, and snippets.

@waitkafuka
Last active July 12, 2019 06:19
Show Gist options
  • Save waitkafuka/cbd80304e9ea57ff801e7f1c20b1fbc7 to your computer and use it in GitHub Desktop.
Save waitkafuka/cbd80304e9ea57ff801e7f1c20b1fbc7 to your computer and use it in GitHub Desktop.
echarts利用uv绘制圆柱
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