Skip to content

Commit 5d3bd77

Browse files
committed
Fix the tracingmetadata visualization
1 parent 142f2aa commit 5d3bd77

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

deep_research/materializers/tracing_metadata_materializer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,9 @@ def _generate_visualization_html(self, metadata: TracingMetadata) -> str:
502502
</div>
503503
504504
<h3>Cost Breakdown Chart</h3>
505-
<canvas id="costBreakdownChart" width="400" height="200"></canvas>
505+
<div style="position: relative; height: 300px; width: 100%; max-width: 400px; margin: 0 auto;">
506+
<canvas id="costBreakdownChart"></canvas>
507+
</div>
506508
<script>
507509
var ctx = document.getElementById('costBreakdownChart').getContext('2d');
508510
var totalCombinedCost = """
@@ -526,7 +528,7 @@ def _generate_visualization_html(self, metadata: TracingMetadata) -> str:
526528
},
527529
options: {
528530
responsive: true,
529-
maintainAspectRatio: false,
531+
maintainAspectRatio: true,
530532
plugins: {
531533
legend: {
532534
position: 'bottom'

0 commit comments

Comments
 (0)