 }
                  scenarioDataMap[name] =
                      scenarioDataMap[name].concat(
                          plotGraph(lines, sameSpacing, barPlot, prefix));
              }
          }
          var nrOfGraphs = 0;
          function plotScenario(name, plotType) {
              var data = scenarioDataMap[name];
              var yAxisTitle = undefined;
              var graphId = "graph" + nrOfGraphs;
              var fullscreenButtonid = "fullscreenButton" + nrOfGraphs;
              nrOfGr