();

  /* Add events on click on action download image/CSV */
  jQuery('.graphZone').delegate('a.actions', 'click', function (e) {
    let $a = jQuery(this);
    let baseUrl = $a.data('href');
    let chartId = $a.parents('.graph').data('graphId');
    let start;
    let end;
    let timezone = localStorage.getItem('realTimezone')
        ? localStorage.getItem('realTimezone')
        : moment.tz.guess();

    //Defining the period
    let graphPeriod = $a.parents('.graph').data('graphPeriod');
    let pars