{"s":"https://www.sec.gov/modules/custom/sec_custom_blocks/js/oasb_raising_capital_map/main.js?v=1.2","format":["","      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"]}