Skip to content

Commit 3fe0cf8

Browse files
fix: hide ECharts toolbox in sandbox metrics chart (#460)
## Summary The sandbox detail monitoring chart (`SandboxMetricsChart`) registers `ToolboxComponent` (required for brush/zoom), but unlike `team-metrics-chart` and `compute-usage-chart`, it was missing `toolbox: { show: false }` in its ECharts option. This caused the toolbox icons (brush, zoom, reset, etc.) to render visibly in the top-right corner of the chart. With Turbopack this defaulted to hidden due to different module initialization order, but Webpack renders the toolbox visibly. ```diff return { backgroundColor: 'transparent', animation: false, + toolbox: { show: false }, brush: isMobile ? undefined : { ... }, ``` Link to Devin session: https://app.devin.ai/sessions/26cc0135d9e24aaa87881e8d7e2069cb Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: ben@e2b.dev <ben@e2b.dev>
1 parent 6599498 commit 3fe0cf8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/features/dashboard/sandbox/monitoring/components/monitoring-sandbox-metrics-chart.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,9 @@ function SandboxMetricsChart({
467467
return {
468468
backgroundColor: 'transparent',
469469
animation: false,
470+
toolbox: {
471+
show: false,
472+
},
470473
brush: isMobile
471474
? undefined
472475
: {

0 commit comments

Comments
 (0)