Automatically rotate the RTT 3D graph

This commit is contained in:
Herbert Wolverson 2024-06-29 09:56:40 -05:00
parent 8e8f9ebef0
commit efb1b7fd76

View File

@ -39,8 +39,11 @@ export class RttHistogram3D extends DashboardGraph {
intensity: 1.2 intensity: 1.2
}, },
ambient: { ambient: {
intensity: 0.3 intensity: 0.2
} }
},
viewControl: {
autoRotate: true,
} }
}, },
series: [{ series: [{
@ -57,6 +60,7 @@ export class RttHistogram3D extends DashboardGraph {
update(rtt) { update(rtt) {
this.chart.hideLoading(); this.chart.hideLoading();
//for (let i=0; i<20; i++) rtt[i] += 20-i;
this.ring.push(rtt); this.ring.push(rtt);
this.option.series[0].data = this.ring.series(); this.option.series[0].data = this.ring.series();
this.chart.setOption(this.option); this.chart.setOption(this.option);