["    }","","    function createLegend(mapType, colors) {","      let container = document.querySelector(\".colorQuantity-container\");","      let innerHTML = `<div class=\"colorQuantity-item\">","            <span class=\"color\" style=\"background-color: #f7f7f7\"></span>","            <span class=\"price\">None</span>","          </div>`;","      let legend = !countyMode ? window[`${mapType}_legend`] : window[`${mapType}_county_legend`];","","      for (let index = 0; index < legend.length; index++) {","        innerHTML += `<div class=\"colorQuantity-item\">","            <span class=\"color\" style=\"background-color: ${colors[index]}\"></span>","            <span class=\"price\">${legend[index]}</span>","          </div>`;","      }","      container.innerHTML = innerHTML;","    }","","","","    const formatNumber = (num, convertToMillions = false) => {","      num = Number(num);","      const oneB = 1000000000;","      const oneM = 1000000;","      const oneK = 1000;","      if (num > 0) {","        // convert to thousand","        if (convertToMillions) {","          num = num / oneM;","        }","        num = num * oneK;","        if (num >= oneM) {","          return Highcharts.numberFormat(num / oneM, 2) + \"B\";","        } else if (num >= oneK) {","          return Highcharts.numberFormat(num / oneK, 2) + \"M\";","        } else {","          return Highcharts.numberFormat(num, 2) + \"K\";","        }","      } else {","        return num;","      }","    };","","    // Instantiate the map"]