{"source":"https://www.sec.gov/modules/custom/sec_custom_blocks/js/oasb_raising_capital_map/main.js?v=1.2","snippet":"    const formatNumber = (num, convertToMillions = false) => {\n      num = Number(num);\n      const oneB = 1000000000;\n      const oneM = 1000000;\n      const oneK = 1000;\n      if (num > 0) {\n        // convert to thousand\n        if (convertToMillions) {\n          num = num / oneM;\n        }\n        num = num * oneK;\n        if (num >= oneM) {\n          return Highcharts.numberFormat(num / oneM, 2) + \"B\";\n        } else if (num >= oneK) {\n          return Highcharts.numberFormat(num / oneK, 2) + \"M\";\n        } else {\n          return Highcharts.numberFormat(num, 2) + \"K\";\n        }\n      } else {\n        return num;\n      }\n            },\n            shadow: false,\n            colorKey: \"color_code\",\n            tooltip: {\n              pointFormatter: function () {\n                const point = this;\n                const [county, state] = this.series.mapMap[point.code].name.split(\",\");\n                return `<strong>${county},${state.toUpperCase()}</strong> <br/> <strong>Offerings Count:</strong> ${\n                  point.offerings\n                } <br/> <strong>USD Raised:</strong> $${formatNumber(point.usd, true)}`;\n              },\n            },"}