(function () {
  var highcharts = document.createElement('script');

  var cdn = 'https://code.highcharts.com/';
  var loaded = 0;  
  var encodedUrl = encodeURI('https://https://app.everviz.com//show/H5U9kpxG');

  var scripts = [
    "highcharts.js",
    "modules/stock.js",
    "highcharts-more.js",
    "highcharts-3d.js",
    "modules/data.js",
    "modules/exporting.js",
    "modules/funnel.js",
    "modules/solid-gauge.js",
    "modules/export-data.js",
    "modules/accessibility.js"
    /* "modules/series-label.js" */
  ];

  var externalCSS = [
      ];

  var extraScripts = [
  "modules/annotations.js"
  ,"modules/annotations-advanced.js"
  ];

  var options = {"chart":{"polar":false,"backgroundColor":"#ffffff","plotBorderWidth":0,"showAxes":false,"height":null,"spacingBottom":32,"spacingLeft":0,"spacingRight":0,"spacingTop":16,"animation":"true","parallelCoordinates":false,"style":{"fontFamily":"'Telesans Agate', Arial, San-serif","fontSize":"12px"}},"title":{"align":"Left","margin":40,"style":{"color":"#222","fontSize":"22px","fontFamily":"'Austin News Deck', Georgia, Serif","fontWeight":"600"},"text":"Remortgagers can cash in"},"subtitle":{"align":"Left","margin":40,"style":{"color":"#222","fontSize":"22px","fontFamily":"'Austin News Deck', Georgia, Serif","fontWeight":"normal"},"text":"If your five-year fix is coming up, get ready for big savings"},"exporting":{"enabled":false},"plotOptions":{"series":{"stacking":"","cursor":"pointer","color":"","marker":{"symbol":"diamond","lineColor":"black","states":{"hover":{"animation":{"duration":0.5}}},"enabled":false,"radius":2,"lineWidth":0.3},"states":{"hover":{"animation":{"duration":0.5},"marker":{"states":{"hover":{"animation":{"duration":0.5}}}},"halo":{"size":1}},"inactive":{}},"tooltip":{"animation":false,"enabled":true,"followPointer":false,"pointFormat":"{point.y}","headerFormat":""},"animation":false},"line":{"allAreas":false,"allowPointSelect":false,"clip":true,"color":"","colorAxis":false,"compareStart":false,"marker":{"enabled":false,"states":{"hover":{"animation":{"duration":5},"enabled":true,"lineColor":"black","fillColor":"","lineWidth":1,"radius":4},"normal":{"animation":true},"select":{"enabled":true}},"enabledThreshold":1,"lineWidth":0},"states":{"hover":{"halo":{"size":1},"marker":{"states":{"hover":{"enabled":true,"animation":{"duration":0.5}}},"enabled":false},"enabled":true,"brightness":1,"animation":{"duration":0}},"select":{"animation":{"duration":0.5},"marker":{"states":{"hover":{"animation":{"duration":0.5}}}}}},"animation":{"duration":1000},"tooltip":{"shadow":false,"crosshairs":"true","shape":"square","shared":false,"split":false,"enabled":true,"animation":true,"outside":false,"style":{"fontSize":"14px"},"borderRadius":1,"padding":8,"pointFormat":"{point.y}","headerFormat":""},"enableMouseTracking":true,"exposeElementToA11y":false,"getExtremesFromAll":false,"selected":false,"stickyTracking":true,"visible":true,"softThreshold":true},"area":{"tooltip":{"pointFormat":"{point.y}","headerFormat":"","shape":"square"},"showInLegend":true,"showInNavigator":false,"showCheckbox":false,"visible":true,"fillOpacity":0.08,"marker":{"symbol":"diamond"},"dataLabels":{"shape":"diamond"}}},"xAxis":[{"index":0,"isX":true,"lineColor":"#333333","labels":{"style":{"fontFamily":"'Telesans Agate', Arial, San-serif","fontSize":"14px"},"padding":0,"enabled":true,"y":22,"zIndex":7,"x":0,"overflow":true},"title":{"x":0},"tickLength":6,"gridLineColor":"#333333","minorGridLineColor":"#333333","minorTickColor":"#333333","tickColor":"#333333","crosshair":{"snap":true,"width":0.3}}],"yAxis":[{"title":{"text":"Average interest rate %, five year fixed mortgage"}}],"series":[{"data":[],"turboThreshold":0,"_colorIndex":0,"_symbolIndex":0,"type":"line"},{"data":[],"turboThreshold":0,"_colorIndex":1,"_symbolIndex":0,"type":"line"}],"credits":{"style":{"color":"#666","textTransform":"uppercase","fontSize":"12px","fontFamily":"'Telesans Agate', Arial, San-serif","fontWeight":"normal"},"enabled":true,"position":{"y":-10,"x":-10},"href":"","text":"Source: Bank of England"},"legend":{"verticalAlign":"top","align":"left","style":{"color":"#666","fontSize":"16px","fontFamily":"'Telesans Agate', Arial, San-serif","fontWeight":"normal"},"alignColumns":true,"enabled":true,"itemMarginTop":5,"squareSymbol":true,"itemStyle":{"fontSize":"16px","color":"#666","fontFamily":"'Telesans Agate', Arial, San-serif","fontWeight":"normal","textOverflow":"diamond"},"floating":"","x":-9,"y":-25,"symbolHeight":12,"symbolPadding":3,"symbolWidth":14,"symbolRadius":"0"},"stockTools":{"gui":{"enabled":false}},"navigation":{"bindingsClassName":"tools-container"},"pane":{"background":[]},"responsive":{"rules":[]},"tooltip":{"shadow":false,"shape":"square","animation":false,"borderRadius":1,"borderWidth":1,"shared":false,"borderColor":"black","backgroundColor":"white","enabled":true,"followPointer":false,"followTouchMove":false,"hideDelay":90,"outside":false,"padding":6,"split":false,"pointFormat":"{point.y}"},"navigator":{"yAxis":{"labels":{"padding":5,"overflow":false,"enabled":true,"distance":15,"useHTML":false,"x":0,"y":15,"zIndex":7}}},"colors":["#0021af","#96efff","#ff77b7","#96efff","#fff7b3","#ff77b7","#ba5594","#743372","#2f114f","#17e698","#f43939"],"accessibility":{"describeSingleSeries":false,"enabled":true},"caption":{},"chartarea":{},"plotarea":{},"annotations":[],"data":{"csv":"null;95% loan to value;75%\nFebruary 2020;3.3;1.71\nJanuary 2020;3.38;1.72\nDecember 2019;3.4;1.72\nNovember 2019;3.41;1.72\nOctober 2019;3.41;1.75\nSeptember 2019;3.37;1.79\nAugust 2019;3.39;1.89\nJuly 2019;3.39;1.93\nJune 2019;3.44;1.97\nMay 2019;3.46;1.99\nApril 2019;3.46;2\nMarch 2019;3.57;2.03\nFebruary 2019;3.6;2.05\nJanuary 2019;3.64;2.05\nDecember 2018;3.72;2.01\nNovember 2018;3.81;2.02\nOctober 2018;3.88;2.06\nSeptember 2018;3.94;2.01\nAugust 2018;4.15;2.03\nJuly 2018;4.29;2.04\nJune 2018;4.39;2.03\nMay 2018;4.43;2.06\nApril 2018;4.37;2.01\nMarch 2018;4.44;2.02\nFebruary 2018;4.5;1.99\nJanuary 2018;4.49;1.98\nDecember 2017;4.54;2.07\nNovember 2017;4.58;2.04\nOctober 2017;4.71;2.04\nSeptember 2017;4.68;1.9\nAugust 2017;4.63;1.96\nJuly 2017;4.67;1.97\nJune 2017;4.74;1.99\nMay 2017;4.72;2.03\nApril 2017;4.7;2.09\nMarch 2017;4.7;2.15\nFebruary 2017;4.62;2.2\nJanuary 2017;4.58;2.22\nDecember 2016;4.6;2.26\nNovember 2016;4.6;2.25\nOctober 2016;4.56;2.27\nSeptember 2016;4.62;2.34\nAugust 2016;4.64;2.39\nJuly 2016;4.65;2.51\nJune 2016;4.65;2.54\nMay 2016;4.68;2.64\nApril 2016;4.71;2.71\nMarch 2016;4.68;2.7\nFebruary 2016;4.7;2.73\nJanuary 2016;4.71;2.68\nDecember 2015;4.82;2.75\nNovember 2015;4.85;2.77\nOctober 2015;4.89;2.78\nSeptember 2015;4.88;2.84\nAugust 2015;4.97;2.92\nJuly 2015;4.97;2.83\nJune 2015;4.96;2.82\nMay 2015;4.96;2.86\nApril 2015;4.98;2.92\nMarch 2015;4.98;2.98\nFebruary 2015;5.02;3.05\nJanuary 2015;5.06;3.09\nDecember 2014;5.43;3.21\nNovember 2014;5.52;3.21\nOctober 2014;5.58;3.27\nSeptember 2014;5.63;3.61\nAugust 2014;5.58;3.76\nJuly 2014;5.58;3.78\nJune 2014;5.58;3.69\nMay 2014;5.57;3.72\nApril 2014;5.55;3.69\nMarch 2014;5.46;3.48\nFebruary 2014;5.45;3.45\nJanuary 2014;5.44;3.34\nDecember 2013;5.35;3.34\nNovember 2013;5.32;3.36","seriesMapping":[{"x":0,"y":1},{"x":0,"y":2}]}};

  function isScriptAlreadyIncluded(src){
    var scripts = document.getElementsByTagName("script");
    for (var i = 0; i < scripts.length; i++) {
      if (scripts[i].hasAttribute('src')) {
        const scriptTag = scripts[i].getAttribute('src') || '';
        if ((scriptTag.indexOf(src) >= 0) || 
            (scriptTag.indexOf('highcharts.src.js') > -1 && src === 'highcharts.js') ||
            ((scriptTag.indexOf('stock/highstock.js') > -1) && src === 'modules/highstock.js')) {
          return true;
        }
      }
    }
    return false;
  }

  function loadCSS() {
    var cssLength = externalCSS.length;
    for(var i=0; i < cssLength; i++) {
      var css = document.createElement('link');
      css.rel  = 'stylesheet';
      css.type = "text/css";
      css.href = externalCSS[i];
      document.body.appendChild(css);
    }
  }

  function createChart() {
    if (typeof window['Highcharts'] !== 'undefined') {


    if (options.yAxis && options.yAxis.length === 1) options.yAxis = options.yAxis[0];
    if (options.xAxis && options.xAxis.length === 1) options.xAxis = options.xAxis[0];
    if (options.zAxis && options.zAxis.length === 1) options.zAxis = options.zAxis[0];

    /*
// Sample of extending options:
Highcharts.merge(true, options, {
    chart: {
        backgroundColor: "#bada55"
    },
    plotOptions: {
        series: {
            cursor: "pointer",
            events: {
                click: function(event) {
                    alert(this.name + " clicked\n" +
                          "Alt: " + event.altKey + "\n" +
                          "Control: " + event.ctrlKey + "\n" +
                          "Shift: " + event.shiftKey + "\n");
                }
            }
        }
    }
});
*//*
// Sample of extending options:
Highcharts.merge(true, options, {
    chart: {
        backgroundColor: "#bada55"
    },
    plotOptions: {
        series: {
            cursor: "pointer",
            events: {
                click: function(event) {
                    alert(this.name + " clicked\n" +
                          "Alt: " + event.altKey + "\n" +
                          "Control: " + event.ctrlKey + "\n" +
                          "Shift: " + event.shiftKey + "\n");
                }
            }
        }
    }
});
*/


      if (options && (options.lang || options.global)) {
        Highcharts.setOptions({
          global: options.global || {},
          lang: options.lang || {}
        });
      }

      if (Highcharts.Annotation) {
        Highcharts.Annotation.ControlPoint.prototype.redraw = function (animation) {
          this.graphic[animation ? 'animate' : 'attr'](
              this.options.positioner ? this.options.positioner.call(this, this.target) : null
          );
        };
      }
      
      window.HighchartsCloud.hasLoaded = true;
      new Highcharts.Chart('highcharts-H5U9kpxG', options);
    }
  }

  function check(scripts, cb) {
    if (loaded === scripts.length) {
      if (cb) {
        cb();
      } else {
        for (var i = 0; i < window.HighchartsCloud.ondone.length; i++) {
          try {
            window.HighchartsCloud.ondone[i]();
          } catch(e) {
            console.error(e);
          }
        }
      }
    }
  }

  function loadScript(s, scripts, cb) {
    if (!s) next();
    
    function next() {
      ++loaded;
      if (loaded < scripts.length) {
        loadScript(scripts[loaded], scripts, cb);
      }
      check(scripts, cb);
    }

    if (isScriptAlreadyIncluded(s)) {
      return next();
    }

    var n = document.createElement('script');

    n.onload = function () {
      next();
    };

    if (s.indexOf('https') >= 0) {
      n.src = s;
    } else {
      n.src = cdn + s;
    }
    document.body.appendChild(n);
  }

  function loadExtraScripts(){
    loaded = 0;
    if (extraScripts.length > 0) {
      loadScript(extraScripts[0], extraScripts);
    }
  }

  function loadExtraScriptsAndMakeChart(){
    loaded = 0;
    if (extraScripts.length > 0) {
      loadScript(extraScripts[0], extraScripts, createChart);
    }
  }

  if (typeof window['HighchartsCloud'] === 'undefined') {
    window.HighchartsCloud = {
      ondone: [createChart],
      hasWrapped: false,
      hasLoaded: false
    };

    loadScript(scripts[0], scripts, loadExtraScripts);
    loadCSS();

  } else {
    if (!window.HighchartsCloud.hasLoaded) window.HighchartsCloud.ondone.push(loadExtraScriptsAndMakeChart);
    else loadExtraScriptsAndMakeChart();
  }

}());
