phId, data, layout);
                  });
              Plotly.newPlot(graphId, data, layout);
          }
          $.each(scenarioList,
              function (index, name) {
                  if (throughputPlot) {
                      plotScenario(name, 'throughput');
                  }
                  if (betterThanWorstPlot) {
                      plotScenario(name, 'better_than_worst');
                  }
                  if (worseThanBestPlot) {
                      plotScenario(name, 'worse