@@ -70,7 +70,7 @@ async function loadGraphData(selector: GraphsSelector, loading: Ref<boolean>) {
70
70
71
71
// If we select a smaller subset of benchmarks, then just show them.
72
72
if (hasSpecificSelection (selector )) {
73
- renderPlots (graphData , selector , " # charts" );
73
+ renderPlots (graphData , selector , document . getElementById ( " charts" ) );
74
74
} else {
75
75
// If we select all of them, we expect that there will be a regular grid.
76
76
@@ -81,15 +81,15 @@ async function loadGraphData(selector: GraphsSelector, loading: Ref<boolean>) {
81
81
graphData ,
82
82
(benchName ) => ! benchName .endsWith (" -tiny" )
83
83
);
84
- renderPlots (withoutTiny , selector , " # charts" );
84
+ renderPlots (withoutTiny , selector , document . getElementById ( " charts" ) );
85
85
86
86
// Then, render only the size-related ones in their own dedicated section as they are less
87
87
// important than having the better grouping. So, we only include the benchmarks ending in
88
88
// "-tiny" and render them in the appropriate section.
89
89
const onlyTiny = filterBenchmarks (graphData , (benchName ) =>
90
90
benchName .endsWith (" -tiny" )
91
91
);
92
- renderPlots (onlyTiny , selector , " # size-charts" );
92
+ renderPlots (onlyTiny , selector , document . getElementById ( " size-charts" ) );
93
93
}
94
94
}
95
95
0 commit comments