You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/09/04 08:50:02 UTC
[GitHub] [incubator-echarts] hanwenbo opened a new issue #11168: surface不显示
hanwenbo opened a new issue #11168: surface不显示
URL: https://github.com/apache/incubator-echarts/issues/11168
Version
4.2.1
Steps to reproduce
```js
var data =[ [0.095735683, 2.689607095, 0], [0.093615044, 2.447761568, 21.57326398], [0.090027983, 2.205611651, 39.64305238], [0.085312137, 1.969522092, 53.75926822], [0.079816198, 1.74483755, 63.57610812], [0.073867208, 1.535534636, 68.86521596], [0.067747357, 1.344131002, 69.51691907], [0.061681978, 1.171801389, 65.53213526], [0.05583742, 1.0186201, 57.00848039], [0.05032591, 0.883851083, 44.12390435], [0.045214248, 0.76622729, 27.12032019], [0.040533778, 0.66418615, 6.28866077], [0.036289915, 0.576049064, -18.04407336], [0.03247033, 0.500146565, -45.52579053], [0.029051461, 0.434897752, -75.78861766], [0.026003415, 0.378854789, -108.4569291], [0.023293461, 0.330722637, -143.1544264], [0.020888397, 0.289362473, -179.5104852], [0.018756074, 0.253785123, -217.1658653], [0.016866301, 0.223139033, -255.7777765], [0.015191319, 0.19669578, -295.0242337], [0.013705986, 0.173835022, -334.607611], [0.012387775, 0.15403001, -374.2573164], [0.011216666, 0.13683426, -413.7315473], [0.010174967, 0.121869653, -452.8181318], [0.009247104, 0.10881602, -491.3345155], [0.008419414, 0.097402155, -529.1269914], [0.007679928, 0.087398135, -566.0693018], [0.007018174, 0.078608811, -602.0607595], [0.006425, 0.070868312, -637.0240313]
]
option = { backgroundColor: '#222', tooltip: { formatter: function(params) { var location = parseFloat(params.value['1']); var showLocation = location; var name = params.seriesName; var time = params.value['0']; //单位为秒 var temp = params.value['2']; var showTime = moment(time).format("YYYY-MM-DD HH:mm:ss"); return "时间: " + showTime + "
位置: " + showLocation + "米
温度: " + temp + "℃"; }, axisPointer: { type: 'shadow', }, }, visualMap: { show: false, min: 20, max: 70, inRange: { color: ['#00BFFF', 'yellow', 'red'], opacity: [0.5, 1] } },
xAxis3D: {
axisPointer: {
show: false
},
type: 'value',
name: '时间',
min: 'dataMin',
max: 'dataMax',
},
yAxis3D: {
axisPointer: {
show: false
},
type: 'value',
name: '位置(米)',
min: 'dataMin',
max: 'dataMax',
},
zAxis3D: {
axisPointer: {
show: false
},
type: 'value',
name: '温度(℃)',
min: 'dataMin',
max: 'dataMax',
axisLabel: {
show: true,
fontFamily: '微软雅黑',
margin: 10
},
},
grid3D: {
axisPointer: {
show: true,
},
light: {
main: {
intensity: 1.2,
},
ambient: {
intensity: 0.3,
},
},
axisLabel: {
textStyle: {
margin: 10,
color: '#cbcbcb',
fontSize: 14,
fontFamily: '微软雅黑',
},
},
axisLine: {
lineStyle: {
color: '#cbcbcb',
width: 1,
},
},
splitLine: {
lineStyle: {
color: '#777',
},
},
},
series: [{
type: 'surface',
wireframe: {
show: false
},
data: data.map(function(item) {
return {
value: [item[1], item[0], item[2]],
}
}),
shading: 'lambert',
label: {
textStyle: {
fontSize: 16,
borderWidth: 1
}
},
emphasis: {
label: {
textStyle: {
fontSize: 20,
color: '#900'
}
},
itemStyle: {
color: '#900'
}
}
}]
}
```
What is expected?
显示
What is actually happening?
不显示
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org