diff options
Diffstat (limited to 'lib/stdlib/test/ets_SUITE_data/visualize_throughput.html')
-rw-r--r-- | lib/stdlib/test/ets_SUITE_data/visualize_throughput.html | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/stdlib/test/ets_SUITE_data/visualize_throughput.html b/lib/stdlib/test/ets_SUITE_data/visualize_throughput.html index 922a3790ea..43076c70ca 100644 --- a/lib/stdlib/test/ets_SUITE_data/visualize_throughput.html +++ b/lib/stdlib/test/ets_SUITE_data/visualize_throughput.html @@ -4,7 +4,7 @@ <!-- %% --> <!-- %% %CopyrightBegin% --> <!-- %% --> -<!-- %% Copyright Ericsson AB and Kjell Winblad 1996-2020. All Rights Reserved. --> +<!-- %% Copyright Ericsson AB and Kjell Winblad 1996-2021. All Rights Reserved. --> <!-- %% --> <!-- %% Licensed under the Apache License, Version 2.0 (the "License"); --> <!-- %% you may not use this file except in compliance with the License. --> @@ -240,10 +240,12 @@ function plotScenario(name, plotType) { var data = scenarioDataMap[name]; var yAxisTitle = undefined; + var graphId = "graph" + nrOfGraphs; + var fullscreenButtonid = "fullscreenButton" + nrOfGraphs; nrOfGraphs = nrOfGraphs + 1; - $("<div class='added' id='graph" + nrOfGraphs + "'>") + $("<div class='added' id='" + graphId + "'>") .insertBefore(insertPlaceholder); - $("<button type='button' class='added' id='fullscreenButton" + nrOfGraphs + "'>Fill screen</button>") + $("<button type='button' class='added' id='" + fullscreenButtonid + "'>Fill screen</button>") .insertBefore(insertPlaceholder); $("<span class='added'><br><hr><br></span>") .insertBefore(insertPlaceholder); @@ -265,17 +267,17 @@ title: yAxisTitle } }; - $("#fullscreenButton" + nrOfGraphs).click( + $("#" + fullscreenButtonid).click( function () { - $('#graph' + nrOfGraphs).replaceWith( - $("<div class='added' id='graph" + nrOfGraphs + "'>")); + $('#' + graphId).replaceWith( + $("<div class='added' id='" + graphId + "'>")); layout = $.extend({}, layout, { width: $(window).width() - 40, height: $(window).height() - 40 }); - Plotly.newPlot('graph' + nrOfGraphs, data, layout); + Plotly.newPlot(graphId, data, layout); }); - Plotly.newPlot('graph' + nrOfGraphs, data, layout); + Plotly.newPlot(graphId, data, layout); } $.each(scenarioList, function (index, name) { |