               title: yAxisTitle
                  }
              };
              $("#" + fullscreenButtonid).click(
                  function () {
                      $('#' + graphId).replaceWith(
                          $("<div class='added' id='" + graphId + "'>"));
                      layout = $.extend({}, layout, {
                          width: $(window).width() - 40,
                          height: $(window).height() - 40
                      });
                      Plotly.newPlot(gra