This should make the bars a bit clearer

This commit is contained in:
Herbert Wolverson 2024-06-29 10:08:53 -05:00
parent 6b8a2f39e3
commit 671614f3b8

View File

@ -11,7 +11,7 @@ export class RttHistogram3D extends DashboardGraph {
let catAxis = []; let catAxis = [];
for (let i=0; i<20; i++) catAxis.push({ for (let i=0; i<20; i++) catAxis.push({
value: i.toString(), value: (i*10).toString(),
itemStyle: {color: lerpGreenToRedViaOrange(20-i, 20)}, itemStyle: {color: lerpGreenToRedViaOrange(20-i, 20)},
} }
); );
@ -39,15 +39,26 @@ export class RttHistogram3D extends DashboardGraph {
boxDepth: 100, boxDepth: 100,
light: { light: {
main: { main: {
intensity: 1.2 intensity: 1.4
}, },
ambient: { ambient: {
intensity: 0.2 intensity: 0.2,
},
},
postEffect: {
enable: true,
SSAO: {
enable: true,
intensity: 4,
},
FXAA: {
enable: true,
} }
}, },
viewControl: { viewControl: {
autoRotate: true, autoRotate: true,
} },
}, },
series: [{ series: [{
type: 'bar3D', type: 'bar3D',
@ -63,7 +74,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; 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);