How to use adjusted method in storybook-root

Best JavaScript code snippet using storybook-root

vectorMap.js

Source:vectorMap.js Github

copy

Full Screen

1export default {2 data: {3 gdp: { name: 'GDP per capita', format: '{0} USD', thousandSeparator: ',', thresholdMax: 5e4, thresholdMin: 1e3 },4 change: { name: 'Change to year before', format: '{0} %' },5 gdpAdjusted: {6 name: 'Purchasing Power Parity',7 format: '{0} USD',8 thousandSeparator: ',',9 thresholdMax: 5e4,10 thresholdMin: 1e3,11 },12 changeAdjusted: { name: 'Change to year before', format: '{0} %' },13 },14 applyData: 'gdpAdjusted',15 values: {16 AF: { gdp: 587, change: 4.73, gdpAdjusted: 1958, changeAdjusted: 0.02 },17 AL: {18 gdp: 4583,19 change: 11.09,20 gdpAdjusted: 12507,21 changeAdjusted: 4.04,22 },23 DZ: {24 gdp: 4293,25 change: 10.01,26 gdpAdjusted: 15237,27 changeAdjusted: 0.33,28 },29 AO: {30 gdp: 4408,31 change: 26.49,32 gdpAdjusted: 6753,33 changeAdjusted: -2.56,34 },35 AG: {36 gdp: 16702,37 change: 3.26,38 gdpAdjusted: 26231,39 changeAdjusted: 2.15,40 },41 AR: {42 gdp: 14467,43 change: 13.83,44 gdpAdjusted: 20876,45 changeAdjusted: 1.77,46 },47 AM: { gdp: 3861, change: 9.22, gdpAdjusted: 9456, changeAdjusted: 7.33 },48 AU: {49 gdp: 55707,50 change: 7.39,51 gdpAdjusted: 50334,52 changeAdjusted: 0.97,53 },54 AT: {55 gdp: 47290,56 change: 5.72,57 gdpAdjusted: 49869,58 changeAdjusted: 2.66,59 },60 AZ: {61 gdp: 4141,62 change: 6.29,63 gdpAdjusted: 17492,64 changeAdjusted: -0.91,65 },66 BS: {67 gdp: 31255,68 change: 2.21,69 gdpAdjusted: 31139,70 changeAdjusted: 0.31,71 },72 BH: {73 gdp: 24029,74 change: 6.32,75 gdpAdjusted: 48505,76 changeAdjusted: 1.02,77 },78 BD: { gdp: 1602, change: 9.79, gdpAdjusted: 4211, changeAdjusted: 6.1 },79 BB: {80 gdp: 17859,81 change: 7.83,82 gdpAdjusted: 18664,83 changeAdjusted: 0.64,84 },85 BY: {86 gdp: 5760,87 change: 14.69,88 gdpAdjusted: 18931,89 changeAdjusted: 2.52,90 },91 BE: { gdp: 43582, change: 5.3, gdpAdjusted: 46553, changeAdjusted: 1.13 },92 BZ: {93 gdp: 4806,94 change: -0.64,95 gdpAdjusted: 8324,96 changeAdjusted: -1.35,97 },98 BJ: { gdp: 830, change: 4.92, gdpAdjusted: 2277, changeAdjusted: 3.46 },99 BT: { gdp: 2903, change: 8.01, gdpAdjusted: 8744, changeAdjusted: 4.82 },100 BO: { gdp: 3353, change: 7.3, gdpAdjusted: 7547, changeAdjusted: 2.73 },101 BA: { gdp: 5149, change: 7.04, gdpAdjusted: 12724, changeAdjusted: 2.6 },102 BW: { gdp: 7877, change: 8.34, gdpAdjusted: 17828, changeAdjusted: 0.38 },103 BR: {104 gdp: 9895,105 change: 13.74,106 gdpAdjusted: 15602,107 changeAdjusted: 0.23,108 },109 BN: {110 gdp: 29712,111 change: 10.31,112 gdpAdjusted: 78196,113 changeAdjusted: -0.7,114 },115 BG: { gdp: 8064, change: 7.58, gdpAdjusted: 21687, changeAdjusted: 4.23 },116 BF: { gdp: 664, change: 8.11, gdpAdjusted: 1889, changeAdjusted: 3.55 },117 BI: { gdp: 312, change: 4.85, gdpAdjusted: 735, changeAdjusted: -5.2 },118 KH: { gdp: 1389, change: 8.76, gdpAdjusted: 4012, changeAdjusted: 5.46 },119 CM: { gdp: 1401, change: 2.94, gdpAdjusted: 3660, changeAdjusted: 0.62 },120 CA: { gdp: 45077, change: 6.27, gdpAdjusted: 48265, changeAdjusted: 2.1 },121 XK: { gdp: 3880, change: 6.23, gdpAdjusted: 10514, changeAdjusted: 3.14 },122 CV: { gdp: 3237, change: 4.91, gdpAdjusted: 6944, changeAdjusted: 2.69 },123 CF: { gdp: 387, change: 7.65, gdpAdjusted: 677, changeAdjusted: 2.45 },124 TD: { gdp: 810, change: -0.71, gdpAdjusted: 2344, changeAdjusted: -6.15 },125 CL: {126 gdp: 15070,127 change: 9.66,128 gdpAdjusted: 24537,129 changeAdjusted: 0.69,130 },131 CN: { gdp: 8643, change: 6.5, gdpAdjusted: 16660, changeAdjusted: 6.47 },132 CO: { gdp: 6273, change: 9.21, gdpAdjusted: 14485, changeAdjusted: 0.96 },133 KM: { gdp: 788, change: 3.09, gdpAdjusted: 1588, changeAdjusted: 0.25 },134 CG: { gdp: 1958, change: 6.66, gdpAdjusted: 6642, changeAdjusted: -7.2 },135 CR: {136 gdp: 11685,137 change: -0.77,138 gdpAdjusted: 16877,139 changeAdjusted: 2.24,140 },141 HR: { gdp: 13138, change: 6.7, gdpAdjusted: 24423, changeAdjusted: 3.15 },142 CY: {143 gdp: 24976,144 change: 5.65,145 gdpAdjusted: 37023,146 changeAdjusted: 3.95,147 },148 CZ: { gdp: 20152, change: 8.9, gdpAdjusted: 35512, changeAdjusted: 4.23 },149 CD: { gdp: 478, change: 2.32, gdpAdjusted: 790, changeAdjusted: 0.2 },150 DK: {151 gdp: 56444,152 change: 4.97,153 gdpAdjusted: 49883,154 changeAdjusted: 1.49,155 },156 DJ: { gdp: 1989, change: 4.52, gdpAdjusted: 3559, changeAdjusted: 5.19 },157 DM: {158 gdp: 7921,159 change: -3.63,160 gdpAdjusted: 11102,161 changeAdjusted: -4.69,162 },163 DO: { gdp: 7375, change: 3.67, gdpAdjusted: 16944, changeAdjusted: 3.5 },164 EC: { gdp: 6098, change: 2.21, gdpAdjusted: 11482, changeAdjusted: 1.29 },165 EG: {166 gdp: 2501,167 change: -32.17,168 gdpAdjusted: 12671,169 changeAdjusted: 2.36,170 },171 SV: { gdp: 4400, change: 4.06, gdpAdjusted: 8948, changeAdjusted: 1.88 },172 GQ: {173 gdp: 12727,174 change: 2.65,175 gdpAdjusted: 36017,176 changeAdjusted: -7.97,177 },178 ER: { gdp: 980, change: 13.88, gdpAdjusted: 1581, changeAdjusted: 2.73 },179 EE: {180 gdp: 19840,181 change: 11.47,182 gdpAdjusted: 31749,183 changeAdjusted: 5.08,184 },185 ET: { gdp: 873, change: 8.82, gdpAdjusted: 2161, changeAdjusted: 8.43 },186 FM: { gdp: 3200, change: 1.45, gdpAdjusted: 3393, changeAdjusted: 1.37 },187 FJ: { gdp: 5740, change: 7.44, gdpAdjusted: 9777, changeAdjusted: 3.08 },188 FI: {189 gdp: 46017,190 change: 5.75,191 gdpAdjusted: 44333,192 changeAdjusted: 2.63,193 },194 FR: {195 gdp: 39869,196 change: 4.35,197 gdpAdjusted: 43760,198 changeAdjusted: 1.46,199 },200 GA: {201 gdp: 7972,202 change: 6.96,203 gdpAdjusted: 19254,204 changeAdjusted: -1.33,205 },206 GM: { gdp: 480, change: 1.45, gdpAdjusted: 1713, changeAdjusted: 0.56 },207 GE: { gdp: 4099, change: 5.86, gdpAdjusted: 10747, changeAdjusted: 5.07 },208 DE: {209 gdp: 44550,210 change: 5.44,211 gdpAdjusted: 50425,212 changeAdjusted: 2.07,213 },214 GH: { gdp: 1663, change: 7.18, gdpAdjusted: 4729, changeAdjusted: 6.28 },215 GR: {216 gdp: 18637,217 change: 4.26,218 gdpAdjusted: 27737,219 changeAdjusted: 1.56,220 },221 GD: { gdp: 10360, change: 5.1, gdpAdjusted: 14926, changeAdjusted: 3.04 },222 GT: { gdp: 4472, change: 7.84, gdpAdjusted: 8145, changeAdjusted: 0.81 },223 GN: { gdp: 749, change: 11.88, gdpAdjusted: 2041, changeAdjusted: 4.09 },224 GW: { gdp: 794, change: 13.43, gdpAdjusted: 1845, changeAdjusted: 3.57 },225 GY: { gdp: 4710, change: 3.24, gdpAdjusted: 8161, changeAdjusted: 1.55 },226 HT: { gdp: 784, change: 3.96, gdpAdjusted: 1815, changeAdjusted: -0.03 },227 HN: { gdp: 2766, change: 4.66, gdpAdjusted: 5562, changeAdjusted: 3.17 },228 HK: { gdp: 46109, change: 6.01, gdpAdjusted: 61393, changeAdjusted: 2.9 },229 HU: {230 gdp: 15531,231 change: 3.16,232 gdpAdjusted: 29474,233 changeAdjusted: 4.32,234 },235 IS: {236 gdp: 70332,237 change: 16.46,238 gdpAdjusted: 51841,239 changeAdjusted: 2.87,240 },241 IN: { gdp: 1983, change: 13.35, gdpAdjusted: 7183, changeAdjusted: 5.43 },242 ID: { gdp: 3876, change: 7.53, gdpAdjusted: 12377, changeAdjusted: 4.33 },243 IR: { gdp: 5305, change: 5.53, gdpAdjusted: 20200, changeAdjusted: 3.24 },244 IQ: {245 gdp: 5088,246 change: 12.24,247 gdpAdjusted: 16954,248 changeAdjusted: -3.79,249 },250 IE: {251 gdp: 70638,252 change: 9.02,253 gdpAdjusted: 75539,254 changeAdjusted: 6.92,255 },256 IL: {257 gdp: 40258,258 change: 8.24,259 gdpAdjusted: 36340,260 changeAdjusted: 1.77,261 },262 IT: {263 gdp: 31984,264 change: 4.31,265 gdpAdjusted: 38140,266 changeAdjusted: 1.59,267 },268 CI: { gdp: 1617, change: 8.14, gdpAdjusted: 3883, changeAdjusted: 5.28 },269 JM: { gdp: 5048, change: 2, gdpAdjusted: 9163, changeAdjusted: 0.67 },270 JP: {271 gdp: 38440,272 change: -1.4,273 gdpAdjusted: 42832,274 changeAdjusted: 1.94,275 },276 JO: { gdp: 5678, change: 2.31, gdpAdjusted: 12494, changeAdjusted: 0.13 },277 KZ: {278 gdp: 8841,279 change: 18.57,280 gdpAdjusted: 26252,281 changeAdjusted: 2.87,282 },283 KE: { gdp: 1702, change: 9.66, gdpAdjusted: 3491, changeAdjusted: 2.29 },284 KI: { gdp: 1721, change: 6.42, gdpAdjusted: 1976, changeAdjusted: 0.43 },285 KW: {286 gdp: 26005,287 change: 5.6,288 gdpAdjusted: 66163,289 changeAdjusted: -4.31,290 },291 KG: { gdp: 1144, change: 7.19, gdpAdjusted: 3667, changeAdjusted: 3.05 },292 LA: { gdp: 2543, change: 5.2, gdpAdjusted: 7366, changeAdjusted: 5.38 },293 LV: {294 gdp: 15547,295 change: 10.98,296 gdpAdjusted: 27644,297 changeAdjusted: 5.58,298 },299 LB: {300 gdp: 11408,301 change: 2.73,302 gdpAdjusted: 19439,303 changeAdjusted: 0.63,304 },305 LS: { gdp: 1425, change: 12.94, gdpAdjusted: 3581, changeAdjusted: 1.78 },306 LR: { gdp: 729, change: -2.12, gdpAdjusted: 1354, changeAdjusted: -0.05 },307 LY: {308 gdp: 4859,309 change: 67.32,310 gdpAdjusted: 9987,311 changeAdjusted: 69.48,312 },313 LT: {314 gdp: 16730,315 change: 12.14,316 gdpAdjusted: 32299,317 changeAdjusted: 4.38,318 },319 LU: {320 gdp: 105803,321 change: 3.94,322 gdpAdjusted: 106374,323 changeAdjusted: 2.27,324 },325 MO: {326 gdp: 77451,327 change: 10.1,328 gdpAdjusted: 111629,329 changeAdjusted: 9.42,330 },331 MK: {332 gdp: 5474,333 change: 5.51,334 gdpAdjusted: 14914,335 changeAdjusted: -0.06,336 },337 MG: { gdp: 448, change: 11.5, gdpAdjusted: 1551, changeAdjusted: 1.37 },338 MW: { gdp: 324, change: 10.17, gdpAdjusted: 1167, changeAdjusted: 1.13 },339 MY: { gdp: 9813, change: 4.68, gdpAdjusted: 29041, changeAdjusted: 4.55 },340 MV: {341 gdp: 12527,342 change: 5.17,343 gdpAdjusted: 19151,344 changeAdjusted: 2.98,345 },346 ML: { gdp: 811, change: 5.62, gdpAdjusted: 2170, changeAdjusted: 2.31 },347 MT: {348 gdp: 27250,349 change: 8.83,350 gdpAdjusted: 41945,351 changeAdjusted: 6.26,352 },353 MH: { gdp: 3625, change: 8.21, gdpAdjusted: 3439, changeAdjusted: 1.83 },354 MR: { gdp: 1318, change: 5.15, gdpAdjusted: 4444, changeAdjusted: 0.52 },355 MU: { gdp: 9794, change: 1.88, gdpAdjusted: 21640, changeAdjusted: 3.67 },356 MX: { gdp: 9304, change: 5.64, gdpAdjusted: 19903, changeAdjusted: 0.91 },357 MD: { gdp: 2280, change: 19.51, gdpAdjusted: 5661, changeAdjusted: 4.24 },358 MN: {359 gdp: 3640,360 change: -0.75,361 gdpAdjusted: 12979,362 changeAdjusted: 3.65,363 },364 ME: { gdp: 7647, change: 8.8, gdpAdjusted: 17735, changeAdjusted: 4.16 },365 MA: { gdp: 3151, change: 4.89, gdpAdjusted: 8567, changeAdjusted: 2.96 },366 MZ: { gdp: 429, change: 9.5, gdpAdjusted: 1244, changeAdjusted: 0.09 },367 MM: { gdp: 1264, change: 4.41, gdpAdjusted: 6244, changeAdjusted: 5.82 },368 NA: {369 gdp: 5413,370 change: 14.96,371 gdpAdjusted: 11312,372 changeAdjusted: -3.12,373 },374 NR: { gdp: 8575, change: 9.6, gdpAdjusted: 12002, changeAdjusted: 1.22 },375 NP: { gdp: 834, change: 14.45, gdpAdjusted: 2679, changeAdjusted: 6.41 },376 NL: {377 gdp: 48346,378 change: 5.89,379 gdpAdjusted: 53635,380 changeAdjusted: 2.83,381 },382 NZ: {383 gdp: 41593,384 change: 6.51,385 gdpAdjusted: 38934,386 changeAdjusted: 2.03,387 },388 NI: { gdp: 2207, change: 2.57, gdpAdjusted: 5849, changeAdjusted: 3.82 },389 NE: { gdp: 440, change: 6.29, gdpAdjusted: 1164, changeAdjusted: 1.37 },390 NG: {391 gdp: 1994,392 change: -9.68,393 gdpAdjusted: 5929,394 changeAdjusted: -1.76,395 },396 NO: {397 gdp: 74941,398 change: 6.07,399 gdpAdjusted: 71831,400 changeAdjusted: 0.87,401 },402 OM: {403 gdp: 17973,404 change: 0.64,405 gdpAdjusted: 45157,406 changeAdjusted: -2.23,407 },408 PK: { gdp: 1541, change: 6.95, gdpAdjusted: 5358, changeAdjusted: 3.58 },409 PW: {410 gdp: 17096,411 change: 0.27,412 gdpAdjusted: 15934,413 changeAdjusted: -2.06,414 },415 PA: {416 gdp: 15089,417 change: 5.35,418 gdpAdjusted: 25351,419 changeAdjusted: 3.82,420 },421 PG: { gdp: 2861, change: 2.51, gdpAdjusted: 3674, changeAdjusted: 0.46 },422 PY: { gdp: 4260, change: 6.47, gdpAdjusted: 9826, changeAdjusted: 3.06 },423 PE: { gdp: 6199, change: 8.93, gdpAdjusted: 13334, changeAdjusted: 1.31 },424 PH: { gdp: 2976, change: 0.78, gdpAdjusted: 8315, changeAdjusted: 5.15 },425 PL: {426 gdp: 13822,427 change: 11.37,428 gdpAdjusted: 29521,429 changeAdjusted: 4.73,430 },431 PT: {432 gdp: 21161,433 change: 3.68,434 gdpAdjusted: 30417,435 changeAdjusted: 3.08,436 },437 PR: {438 gdp: 30488,439 change: -0.98,440 gdpAdjusted: 37339,441 changeAdjusted: -2.35,442 },443 QA: {444 gdp: 60804,445 change: 4.39,446 gdpAdjusted: 124529,447 changeAdjusted: -2.31,448 },449 RO: {450 gdp: 10757,451 change: 13.18,452 gdpAdjusted: 24508,453 changeAdjusted: 7.49,454 },455 RU: {456 gdp: 10608,457 change: 19.19,458 gdpAdjusted: 27834,459 changeAdjusted: 1.5,460 },461 RW: { gdp: 772, change: 5.2, gdpAdjusted: 2080, changeAdjusted: 3.7 },462 KN: { gdp: 16296, change: 1.9, gdpAdjusted: 26845, changeAdjusted: 1.71 },463 LC: { gdp: 9607, change: 1.99, gdpAdjusted: 14450, changeAdjusted: 2.51 },464 VC: { gdp: 7270, change: 3.99, gdpAdjusted: 11491, changeAdjusted: 0.7 },465 WS: { gdp: 4253, change: 5.93, gdpAdjusted: 5740, changeAdjusted: 1.8 },466 SM: { gdp: 47406, change: 3.8, gdpAdjusted: 59466, changeAdjusted: 1.65 },467 ST: { gdp: 1785, change: 5.7, gdpAdjusted: 3180, changeAdjusted: 2.58 },468 SA: {469 gdp: 21120,470 change: 3.95,471 gdpAdjusted: 54777,472 changeAdjusted: -2.63,473 },474 SN: { gdp: 1038, change: 8.73, gdpAdjusted: 2727, changeAdjusted: 4.39 },475 RS: { gdp: 5899, change: 8.71, gdpAdjusted: 15e3, changeAdjusted: 1.83 },476 SC: {477 gdp: 15686,478 change: 2.97,479 gdpAdjusted: 28779,480 changeAdjusted: 3.75,481 },482 SL: { gdp: 492, change: -5.88, gdpAdjusted: 1553, changeAdjusted: 1.35 },483 SG: {484 gdp: 57713,485 change: 4.48,486 gdpAdjusted: 93906,487 changeAdjusted: 2.22,488 },489 SK: {490 gdp: 17664,491 change: 6.73,492 gdpAdjusted: 33025,493 changeAdjusted: 3.61,494 },495 SI: {496 gdp: 23654,497 change: 9.17,498 gdpAdjusted: 34408,499 changeAdjusted: 4.93,500 },501 SB: { gdp: 2081, change: 1.18, gdpAdjusted: 2157, changeAdjusted: 1.29 },502 SO: { gdp: 486, change: 6.38, gdpAdjusted: 1229, changeAdjusted: -1.82 },503 ZA: {504 gdp: 6180,505 change: 16.25,506 gdpAdjusted: 13545,507 changeAdjusted: -0.07,508 },509 KR: {510 gdp: 29891,511 change: 8.56,512 gdpAdjusted: 39434,513 changeAdjusted: 2.72,514 },515 SS: {516 gdp: 228,517 change: -18.73,518 gdpAdjusted: 1489,519 changeAdjusted: -12.82,520 },521 ES: {522 gdp: 28359,523 change: 6.31,524 gdpAdjusted: 38286,525 changeAdjusted: 3.01,526 },527 LK: { gdp: 4085, change: 6.95, gdpAdjusted: 12811, changeAdjusted: 3.46 },528 SD: { gdp: 1428, change: -1.91, gdpAdjusted: 4586, changeAdjusted: 0.82 },529 SR: {530 gdp: 5746,531 change: 0.76,532 gdpAdjusted: 13876,533 changeAdjusted: -0.87,534 },535 SZ: {536 gdp: 3915,537 change: 15.19,538 gdpAdjusted: 9884,539 changeAdjusted: -0.67,540 },541 SE: {542 gdp: 53218,543 change: 3.39,544 gdpAdjusted: 51475,545 changeAdjusted: 1.68,546 },547 CH: {548 gdp: 80591,549 change: 0.35,550 gdpAdjusted: 61422,551 changeAdjusted: 0.24,552 },553 TW: {554 gdp: 24577,555 change: 9.03,556 gdpAdjusted: 50294,557 changeAdjusted: 2.51,558 },559 TJ: { gdp: 824, change: 2.54, gdpAdjusted: 3211, changeAdjusted: 5.06 },560 TZ: { gdp: 1034, change: 5.58, gdpAdjusted: 3240, changeAdjusted: 2.96 },561 TH: {562 gdp: 6591,563 change: 10.39,564 gdpAdjusted: 17855,565 changeAdjusted: 3.68,566 },567 TL: { gdp: 2104, change: 1.19, gdpAdjusted: 5444, changeAdjusted: -2.67 },568 TG: { gdp: 611, change: 4.24, gdpAdjusted: 1659, changeAdjusted: 1.95 },569 TO: { gdp: 4177, change: 5.56, gdpAdjusted: 5608, changeAdjusted: 2.26 },570 TT: {571 gdp: 15769,572 change: -3.46,573 gdpAdjusted: 31367,574 changeAdjusted: -2.58,575 },576 TN: {577 gdp: 3496,578 change: -5.24,579 gdpAdjusted: 11755,580 changeAdjusted: 0.85,581 },582 TR: {583 gdp: 10512,584 change: -2.82,585 gdpAdjusted: 26893,586 changeAdjusted: 5.68,587 },588 TM: { gdp: 6643, change: 3.59, gdpAdjusted: 18126, changeAdjusted: 4.86 },589 TV: { gdp: 3638, change: 2.24, gdpAdjusted: 3807, changeAdjusted: 2.34 },590 UG: { gdp: 699, change: 1.04, gdpAdjusted: 2354, changeAdjusted: 2.86 },591 UA: { gdp: 2583, change: 17.46, gdpAdjusted: 8713, changeAdjusted: 3.02 },592 AE: {593 gdp: 37226,594 change: 5.21,595 gdpAdjusted: 67741,596 changeAdjusted: -0.86,597 },598 GB: {599 gdp: 39735,600 change: -1.96,601 gdpAdjusted: 44117,602 changeAdjusted: 1.21,603 },604 US: {605 gdp: 59501,606 change: 3.37,607 gdpAdjusted: 59501,608 changeAdjusted: 1.48,609 },610 UY: {611 gdp: 16722,612 change: 11.02,613 gdpAdjusted: 22371,614 changeAdjusted: 2.74,615 },616 UZ: {617 gdp: 1491,618 change: -28.81,619 gdpAdjusted: 6929,620 changeAdjusted: 3.89,621 },622 VU: { gdp: 3094, change: 6.51, gdpAdjusted: 2739, changeAdjusted: 2.33 },623 VE: {624 gdp: 6684,625 change: -12.16,626 gdpAdjusted: 12114,627 changeAdjusted: -15.3,628 },629 VN: { gdp: 2354, change: 8.37, gdpAdjusted: 6913, changeAdjusted: 5.78 },630 YE: {631 gdp: 551,632 change: -23.23,633 gdpAdjusted: 1287,634 changeAdjusted: -16.17,635 },636 ZM: { gdp: 1480, change: 18.11, gdpAdjusted: 3996, changeAdjusted: 0.95 },637 ZW: { gdp: 1176, change: 5.78, gdpAdjusted: 2283, changeAdjusted: 1.02 },638 },...

Full Screen

Full Screen

gdp.js

Source:gdp.js Github

copy

Full Screen

1var svgMapDataGPD = {2 data: {3 gdp: {4 name: 'GDP per capita',5 format: '{0} USD',6 thousandSeparator: ',',7 thresholdMax: 50000,8 thresholdMin: 10009 },10 change: {11 name: 'Change to year before',12 format: '{0} %'13 },14 gdpAdjusted: {15 name: 'Purchasing Power Parity',16 format: '{0} USD',17 thousandSeparator: ',',18 thresholdMax: 50000,19 thresholdMin: 100020 },21 changeAdjusted: {22 name: 'Change to year before',23 format: '{0} %'24 }25 },26 applyData: 'gdpAdjusted',27 values: {28 AF: {gdp: 587, change: 4.73, gdpAdjusted: 1958, changeAdjusted: 0.02},29 AL: {gdp: 4583, change: 11.09, gdpAdjusted: 12507, changeAdjusted: 4.04},30 DZ: {gdp: 4293, change: 10.01, gdpAdjusted: 15237, changeAdjusted: 0.33},31 AO: {gdp: 4408, change: 26.49, gdpAdjusted: 6753, changeAdjusted: -2.56},32 AG: {gdp: 16702, change: 3.26, gdpAdjusted: 26231, changeAdjusted: 2.15},33 AR: {gdp: 14467, change: 13.83, gdpAdjusted: 20876, changeAdjusted: 1.77},34 AM: {gdp: 3861, change: 9.22, gdpAdjusted: 9456, changeAdjusted: 7.33},35 AU: {gdp: 55707, change: 7.39, gdpAdjusted: 50334, changeAdjusted: 0.97},36 AT: {gdp: 47290, change: 5.72, gdpAdjusted: 49869, changeAdjusted: 2.66},37 AZ: {gdp: 4141, change: 6.29, gdpAdjusted: 17492, changeAdjusted: -0.91},38 BS: {gdp: 31255, change: 2.21, gdpAdjusted: 31139, changeAdjusted: 0.31},39 BH: {gdp: 24029, change: 6.32, gdpAdjusted: 48505, changeAdjusted: 1.02},40 BD: {gdp: 1602, change: 9.79, gdpAdjusted: 4211, changeAdjusted: 6.10},41 BB: {gdp: 17859, change: 7.83, gdpAdjusted: 18664, changeAdjusted: 0.64},42 BY: {gdp: 5760, change: 14.69, gdpAdjusted: 18931, changeAdjusted: 2.52},43 BE: {gdp: 43582, change: 5.30, gdpAdjusted: 46553, changeAdjusted: 1.13},44 BZ: {gdp: 4806, change: -0.64, gdpAdjusted: 8324, changeAdjusted: -1.35},45 BJ: {gdp: 830, change: 4.92, gdpAdjusted: 2277, changeAdjusted: 3.46},46 BT: {gdp: 2903, change: 8.01, gdpAdjusted: 8744, changeAdjusted: 4.82},47 BO: {gdp: 3353, change: 7.30, gdpAdjusted: 7547, changeAdjusted: 2.73},48 BA: {gdp: 5149, change: 7.04, gdpAdjusted: 12724, changeAdjusted: 2.60},49 BW: {gdp: 7877, change: 8.34, gdpAdjusted: 17828, changeAdjusted: 0.38},50 BR: {gdp: 9895, change: 13.74, gdpAdjusted: 15602, changeAdjusted: 0.23},51 BN: {gdp: 29712, change: 10.31, gdpAdjusted: 78196, changeAdjusted: -0.70},52 BG: {gdp: 8064, change: 7.58, gdpAdjusted: 21687, changeAdjusted: 4.23},53 BF: {gdp: 664, change: 8.11, gdpAdjusted: 1889, changeAdjusted: 3.55},54 BI: {gdp: 312, change: 4.85, gdpAdjusted: 735, changeAdjusted: -5.20},55 KH: {gdp: 1389, change: 8.76, gdpAdjusted: 4012, changeAdjusted: 5.46},56 CM: {gdp: 1401, change: 2.94, gdpAdjusted: 3660, changeAdjusted: 0.62},57 CA: {gdp: 45077, change: 6.27, gdpAdjusted: 48265, changeAdjusted: 2.10},58 XK: {gdp: 3880, change: 6.23, gdpAdjusted: 10514, changeAdjusted: 3.14},59 CV: {gdp: 3237, change: 4.91, gdpAdjusted: 6944, changeAdjusted: 2.69},60 CF: {gdp: 387, change: 7.65, gdpAdjusted: 677, changeAdjusted: 2.45},61 TD: {gdp: 810, change: -0.71, gdpAdjusted: 2344, changeAdjusted: -6.15},62 CL: {gdp: 15070, change: 9.66, gdpAdjusted: 24537, changeAdjusted: 0.69},63 CN: {gdp: 8643, change: 6.50, gdpAdjusted: 16660, changeAdjusted: 6.47},64 CO: {gdp: 6273, change: 9.21, gdpAdjusted: 14485, changeAdjusted: 0.96},65 KM: {gdp: 788, change: 3.09, gdpAdjusted: 1588, changeAdjusted: 0.25},66 CG: {gdp: 1958, change: 6.66, gdpAdjusted: 6642, changeAdjusted: -7.20},67 CR: {gdp: 11685, change: -0.77, gdpAdjusted: 16877, changeAdjusted: 2.24},68 HR: {gdp: 13138, change: 6.70, gdpAdjusted: 24423, changeAdjusted: 3.15},69 CY: {gdp: 24976, change: 5.65, gdpAdjusted: 37023, changeAdjusted: 3.95},70 CZ: {gdp: 20152, change: 8.90, gdpAdjusted: 35512, changeAdjusted: 4.23},71 CD: {gdp: 478, change: 2.32, gdpAdjusted: 790, changeAdjusted: 0.20},72 DK: {gdp: 56444, change: 4.97, gdpAdjusted: 49883, changeAdjusted: 1.49},73 DJ: {gdp: 1989, change: 4.52, gdpAdjusted: 3559, changeAdjusted: 5.19},74 DM: {gdp: 7921, change: -3.63, gdpAdjusted: 11102, changeAdjusted: -4.69},75 DO: {gdp: 7375, change: 3.67, gdpAdjusted: 16944, changeAdjusted: 3.50},76 EC: {gdp: 6098, change: 2.21, gdpAdjusted: 11482, changeAdjusted: 1.29},77 EG: {gdp: 2501, change: -32.17, gdpAdjusted: 12671, changeAdjusted: 2.36},78 SV: {gdp: 4400, change: 4.06, gdpAdjusted: 8948, changeAdjusted: 1.88},79 GQ: {gdp: 12727, change: 2.65, gdpAdjusted: 36017, changeAdjusted: -7.97},80 ER: {gdp: 980, change: 13.88, gdpAdjusted: 1581, changeAdjusted: 2.73},81 EE: {gdp: 19840, change: 11.47, gdpAdjusted: 31749, changeAdjusted: 5.08},82 ET: {gdp: 873, change: 8.82, gdpAdjusted: 2161, changeAdjusted: 8.43},83 FM: {gdp: 3200, change: 1.45, gdpAdjusted: 3393, changeAdjusted: 1.37},84 FJ: {gdp: 5740, change: 7.44, gdpAdjusted: 9777, changeAdjusted: 3.08},85 FI: {gdp: 46017, change: 5.75, gdpAdjusted: 44333, changeAdjusted: 2.63},86 FR: {gdp: 39869, change: 4.35, gdpAdjusted: 43760, changeAdjusted: 1.46},87 GA: {gdp: 7972, change: 6.96, gdpAdjusted: 19254, changeAdjusted: -1.33},88 GM: {gdp: 480, change: 1.45, gdpAdjusted: 1713, changeAdjusted: 0.56},89 GE: {gdp: 4099, change: 5.86, gdpAdjusted: 10747, changeAdjusted: 5.07},90 DE: {gdp: 44550, change: 5.44, gdpAdjusted: 50425, changeAdjusted: 2.07},91 GH: {gdp: 1663, change: 7.18, gdpAdjusted: 4729, changeAdjusted: 6.28},92 GR: {gdp: 18637, change: 4.26, gdpAdjusted: 27737, changeAdjusted: 1.56},93 GD: {gdp: 10360, change: 5.10, gdpAdjusted: 14926, changeAdjusted: 3.04},94 GT: {gdp: 4472, change: 7.84, gdpAdjusted: 8145, changeAdjusted: 0.81},95 GN: {gdp: 749, change: 11.88, gdpAdjusted: 2041, changeAdjusted: 4.09},96 GW: {gdp: 794, change: 13.43, gdpAdjusted: 1845, changeAdjusted: 3.57},97 GY: {gdp: 4710, change: 3.24, gdpAdjusted: 8161, changeAdjusted: 1.55},98 HT: {gdp: 784, change: 3.96, gdpAdjusted: 1815, changeAdjusted: -0.03},99 HN: {gdp: 2766, change: 4.66, gdpAdjusted: 5562, changeAdjusted: 3.17},100 HK: {gdp: 46109, change: 6.01, gdpAdjusted: 61393, changeAdjusted: 2.90},101 HU: {gdp: 15531, change: 3.16, gdpAdjusted: 29474, changeAdjusted: 4.32},102 IS: {gdp: 70332, change: 16.46, gdpAdjusted: 51841, changeAdjusted: 2.87},103 IN: {gdp: 1983, change: 13.35, gdpAdjusted: 7183, changeAdjusted: 5.43},104 ID: {gdp: 3876, change: 7.53, gdpAdjusted: 12377, changeAdjusted: 4.33},105 IR: {gdp: 5305, change: 5.53, gdpAdjusted: 20200, changeAdjusted: 3.24},106 IQ: {gdp: 5088, change: 12.24, gdpAdjusted: 16954, changeAdjusted: -3.79},107 IE: {gdp: 70638, change: 9.02, gdpAdjusted: 75539, changeAdjusted: 6.92},108 IL: {gdp: 40258, change: 8.24, gdpAdjusted: 36340, changeAdjusted: 1.77},109 IT: {gdp: 31984, change: 4.31, gdpAdjusted: 38140, changeAdjusted: 1.59},110 CI: {gdp: 1617, change: 8.14, gdpAdjusted: 3883, changeAdjusted: 5.28},111 JM: {gdp: 5048, change: 2.00, gdpAdjusted: 9163, changeAdjusted: 0.67},112 JP: {gdp: 38440, change: -1.40, gdpAdjusted: 42832, changeAdjusted: 1.94},113 JO: {gdp: 5678, change: 2.31, gdpAdjusted: 12494, changeAdjusted: 0.13},114 KZ: {gdp: 8841, change: 18.57, gdpAdjusted: 26252, changeAdjusted: 2.87},115 KE: {gdp: 1702, change: 9.66, gdpAdjusted: 3491, changeAdjusted: 2.29},116 KI: {gdp: 1721, change: 6.42, gdpAdjusted: 1976, changeAdjusted: 0.43},117 KW: {gdp: 26005, change: 5.60, gdpAdjusted: 66163, changeAdjusted: -4.31},118 KG: {gdp: 1144, change: 7.19, gdpAdjusted: 3667, changeAdjusted: 3.05},119 LA: {gdp: 2543, change: 5.20, gdpAdjusted: 7366, changeAdjusted: 5.38},120 LV: {gdp: 15547, change: 10.98, gdpAdjusted: 27644, changeAdjusted: 5.58},121 LB: {gdp: 11408, change: 2.73, gdpAdjusted: 19439, changeAdjusted: 0.63},122 LS: {gdp: 1425, change: 12.94, gdpAdjusted: 3581, changeAdjusted: 1.78},123 LR: {gdp: 729, change: -2.12, gdpAdjusted: 1354, changeAdjusted: -0.05},124 LY: {gdp: 4859, change: 67.32, gdpAdjusted: 9987, changeAdjusted: 69.48},125 LT: {gdp: 16730, change: 12.14, gdpAdjusted: 32299, changeAdjusted: 4.38},126 LU: {gdp: 105803, change: 3.94, gdpAdjusted: 106374, changeAdjusted: 2.27},127 MO: {gdp: 77451, change: 10.10, gdpAdjusted: 111629, changeAdjusted: 9.42},128 MK: {gdp: 5474, change: 5.51, gdpAdjusted: 14914, changeAdjusted: -0.06},129 MG: {gdp: 448, change: 11.50, gdpAdjusted: 1551, changeAdjusted: 1.37},130 MW: {gdp: 324, change: 10.17, gdpAdjusted: 1167, changeAdjusted: 1.13},131 MY: {gdp: 9813, change: 4.68, gdpAdjusted: 29041, changeAdjusted: 4.55},132 MV: {gdp: 12527, change: 5.17, gdpAdjusted: 19151, changeAdjusted: 2.98},133 ML: {gdp: 811, change: 5.62, gdpAdjusted: 2170, changeAdjusted: 2.31},134 MT: {gdp: 27250, change: 8.83, gdpAdjusted: 41945, changeAdjusted: 6.26},135 MH: {gdp: 3625, change: 8.21, gdpAdjusted: 3439, changeAdjusted: 1.83},136 MR: {gdp: 1318, change: 5.15, gdpAdjusted: 4444, changeAdjusted: 0.52},137 MU: {gdp: 9794, change: 1.88, gdpAdjusted: 21640, changeAdjusted: 3.67},138 MX: {gdp: 9304, change: 5.64, gdpAdjusted: 19903, changeAdjusted: 0.91},139 MD: {gdp: 2280, change: 19.51, gdpAdjusted: 5661, changeAdjusted: 4.24},140 MN: {gdp: 3640, change: -0.75, gdpAdjusted: 12979, changeAdjusted: 3.65},141 ME: {gdp: 7647, change: 8.80, gdpAdjusted: 17735, changeAdjusted: 4.16},142 MA: {gdp: 3151, change: 4.89, gdpAdjusted: 8567, changeAdjusted: 2.96},143 MZ: {gdp: 429, change: 9.50, gdpAdjusted: 1244, changeAdjusted: 0.09},144 MM: {gdp: 1264, change: 4.41, gdpAdjusted: 6244, changeAdjusted: 5.82},145 NA: {gdp: 5413, change: 14.96, gdpAdjusted: 11312, changeAdjusted: -3.12},146 NR: {gdp: 8575, change: 9.60, gdpAdjusted: 12002, changeAdjusted: 1.22},147 NP: {gdp: 834, change: 14.45, gdpAdjusted: 2679, changeAdjusted: 6.41},148 NL: {gdp: 48346, change: 5.89, gdpAdjusted: 53635, changeAdjusted: 2.83},149 NZ: {gdp: 41593, change: 6.51, gdpAdjusted: 38934, changeAdjusted: 2.03},150 NI: {gdp: 2207, change: 2.57, gdpAdjusted: 5849, changeAdjusted: 3.82},151 NE: {gdp: 440, change: 6.29, gdpAdjusted: 1164, changeAdjusted: 1.37},152 NG: {gdp: 1994, change: -9.68, gdpAdjusted: 5929, changeAdjusted: -1.76},153 NO: {gdp: 74941, change: 6.07, gdpAdjusted: 71831, changeAdjusted: 0.87},154 OM: {gdp: 17973, change: 0.64, gdpAdjusted: 45157, changeAdjusted: -2.23},155 PK: {gdp: 1541, change: 6.95, gdpAdjusted: 5358, changeAdjusted: 3.58},156 PW: {gdp: 17096, change: 0.27, gdpAdjusted: 15934, changeAdjusted: -2.06},157 PA: {gdp: 15089, change: 5.35, gdpAdjusted: 25351, changeAdjusted: 3.82},158 PG: {gdp: 2861, change: 2.51, gdpAdjusted: 3674, changeAdjusted: 0.46},159 PY: {gdp: 4260, change: 6.47, gdpAdjusted: 9826, changeAdjusted: 3.06},160 PE: {gdp: 6199, change: 8.93, gdpAdjusted: 13334, changeAdjusted: 1.31},161 PH: {gdp: 2976, change: 0.78, gdpAdjusted: 8315, changeAdjusted: 5.15},162 PL: {gdp: 13822, change: 11.37, gdpAdjusted: 29521, changeAdjusted: 4.73},163 PT: {gdp: 21161, change: 3.68, gdpAdjusted: 30417, changeAdjusted: 3.08},164 PR: {gdp: 30488, change: -0.98, gdpAdjusted: 37339, changeAdjusted: -2.35},165 QA: {gdp: 60804, change: 4.39, gdpAdjusted: 124529, changeAdjusted: -2.31},166 RO: {gdp: 10757, change: 13.18, gdpAdjusted: 24508, changeAdjusted: 7.49},167 RU: {gdp: 10608, change: 19.19, gdpAdjusted: 27834, changeAdjusted: 1.50},168 RW: {gdp: 772, change: 5.20, gdpAdjusted: 2080, changeAdjusted: 3.70},169 KN: {gdp: 16296, change: 1.90, gdpAdjusted: 26845, changeAdjusted: 1.71},170 LC: {gdp: 9607, change: 1.99, gdpAdjusted: 14450, changeAdjusted: 2.51},171 VC: {gdp: 7270, change: 3.99, gdpAdjusted: 11491, changeAdjusted: 0.70},172 WS: {gdp: 4253, change: 5.93, gdpAdjusted: 5740, changeAdjusted: 1.80},173 SM: {gdp: 47406, change: 3.80, gdpAdjusted: 59466, changeAdjusted: 1.65},174 ST: {gdp: 1785, change: 5.70, gdpAdjusted: 3180, changeAdjusted: 2.58},175 SA: {gdp: 21120, change: 3.95, gdpAdjusted: 54777, changeAdjusted: -2.63},176 SN: {gdp: 1038, change: 8.73, gdpAdjusted: 2727, changeAdjusted: 4.39},177 RS: {gdp: 5899, change: 8.71, gdpAdjusted: 15000, changeAdjusted: 1.83},178 SC: {gdp: 15686, change: 2.97, gdpAdjusted: 28779, changeAdjusted: 3.75},179 SL: {gdp: 492, change: -5.88, gdpAdjusted: 1553, changeAdjusted: 1.35},180 SG: {gdp: 57713, change: 4.48, gdpAdjusted: 93906, changeAdjusted: 2.22},181 SK: {gdp: 17664, change: 6.73, gdpAdjusted: 33025, changeAdjusted: 3.61},182 SI: {gdp: 23654, change: 9.17, gdpAdjusted: 34408, changeAdjusted: 4.93},183 SB: {gdp: 2081, change: 1.18, gdpAdjusted: 2157, changeAdjusted: 1.29},184 SO: {gdp: 486, change: 6.38, gdpAdjusted: 1229, changeAdjusted: -1.82},185 ZA: {gdp: 6180, change: 16.25, gdpAdjusted: 13545, changeAdjusted: -0.07},186 KR: {gdp: 29891, change: 8.56, gdpAdjusted: 39434, changeAdjusted: 2.72},187 SS: {gdp: 228, change: -18.73, gdpAdjusted: 1489, changeAdjusted: -12.82},188 ES: {gdp: 28359, change: 6.31, gdpAdjusted: 38286, changeAdjusted: 3.01},189 LK: {gdp: 4085, change: 6.95, gdpAdjusted: 12811, changeAdjusted: 3.46},190 SD: {gdp: 1428, change: -1.91, gdpAdjusted: 4586, changeAdjusted: 0.82},191 SR: {gdp: 5746, change: 0.76, gdpAdjusted: 13876, changeAdjusted: -0.87},192 SZ: {gdp: 3915, change: 15.19, gdpAdjusted: 9884, changeAdjusted: -0.67},193 SE: {gdp: 53218, change: 3.39, gdpAdjusted: 51475, changeAdjusted: 1.68},194 CH: {gdp: 80591, change: 0.35, gdpAdjusted: 61422, changeAdjusted: 0.24},195 TW: {gdp: 24577, change: 9.03, gdpAdjusted: 50294, changeAdjusted: 2.51},196 TJ: {gdp: 824, change: 2.54, gdpAdjusted: 3211, changeAdjusted: 5.06},197 TZ: {gdp: 1034, change: 5.58, gdpAdjusted: 3240, changeAdjusted: 2.96},198 TH: {gdp: 6591, change: 10.39, gdpAdjusted: 17855, changeAdjusted: 3.68},199 TL: {gdp: 2104, change: 1.19, gdpAdjusted: 5444, changeAdjusted: -2.67},200 TG: {gdp: 611, change: 4.24, gdpAdjusted: 1659, changeAdjusted: 1.95},201 TO: {gdp: 4177, change: 5.56, gdpAdjusted: 5608, changeAdjusted: 2.26},202 TT: {gdp: 15769, change: -3.46, gdpAdjusted: 31367, changeAdjusted: -2.58},203 TN: {gdp: 3496, change: -5.24, gdpAdjusted: 11755, changeAdjusted: 0.85},204 TR: {gdp: 10512, change: -2.82, gdpAdjusted: 26893, changeAdjusted: 5.68},205 TM: {gdp: 6643, change: 3.59, gdpAdjusted: 18126, changeAdjusted: 4.86},206 TV: {gdp: 3638, change: 2.24, gdpAdjusted: 3807, changeAdjusted: 2.34},207 UG: {gdp: 699, change: 1.04, gdpAdjusted: 2354, changeAdjusted: 2.86},208 UA: {gdp: 2583, change: 17.46, gdpAdjusted: 8713, changeAdjusted: 3.02},209 AE: {gdp: 37226, change: 5.21, gdpAdjusted: 67741, changeAdjusted: -0.86},210 GB: {gdp: 39735, change: -1.96, gdpAdjusted: 44117, changeAdjusted: 1.21},211 US: {gdp: 59501, change: 3.37, gdpAdjusted: 59501, changeAdjusted: 1.48},212 UY: {gdp: 16722, change: 11.02, gdpAdjusted: 22371, changeAdjusted: 2.74},213 UZ: {gdp: 1491, change: -28.81, gdpAdjusted: 6929, changeAdjusted: 3.89},214 VU: {gdp: 3094, change: 6.51, gdpAdjusted: 2739, changeAdjusted: 2.33},215 VE: {gdp: 6684, change: -12.16, gdpAdjusted: 12114, changeAdjusted: -15.30},216 VN: {gdp: 2354, change: 8.37, gdpAdjusted: 6913, changeAdjusted: 5.78},217 YE: {gdp: 551, change: -23.23, gdpAdjusted: 1287, changeAdjusted: -16.17},218 ZM: {gdp: 1480, change: 18.11, gdpAdjusted: 3996, changeAdjusted: 0.95},219 ZW: {gdp: 1176, change: 5.78, gdpAdjusted: 2283, changeAdjusted: 1.02}220 }...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1import { addDecorator } from '@storybook/react';2import { withRoot } from 'storybook-root-decorator';3addDecorator(withRoot);4import { configure } from '@storybook/react';5const req = require.context('../src', true, /.stories.js$/);6function loadStories() {7 req.keys().forEach(filename => req(filename));8}9configure(loadStories, module);10module.exports = (baseConfig, env, defaultConfig) => {11 defaultConfig.module.rules.push({12 test: /\.(ts|tsx)$/,13 loader: require.resolve('awesome-typescript-loader')14 });15 defaultConfig.resolve.extensions.push('.ts', '.tsx');16 return defaultConfig;17};18import '@storybook/addon-actions/register';19import '@storybook/addon-links/register';20import '@storybook/addon-knobs/register';21import '@storybook/addon-storysource/register';22import * as React from 'react';23import * as ReactDOM from 'react-dom';24import { App } from './App';25import { withRoot } from 'storybook-root-decorator';26ReactDOM.render(withRoot(<App />), document.getElementById('root'));27import * as React from 'react';28import { storiesOf } from '@storybook/react';29import { withKnobs } from '@storybook/addon-knobs';30import { withInfo } from '@storybook/addon-info';31import { withRoot } from 'storybook-root-decorator';32import { BrowserRouter } from 'react-router-dom';33const stories = storiesOf('App', module);34stories.addDecorator(withKnobs);35stories.add(36 withInfo()(() => {37 return withRoot(<BrowserRouter>App</BrowserRouter>);38 })39);40import * as React from 'react';41import { storiesOf } from '@storybook/react';42import { withKnobs } from '@storybook/addon-knobs';43import { withInfo } from '@storybook/addon-info';44import { withRoot } from 'storybook-root-decorator';45const stories = storiesOf('MyComponent', module);46stories.addDecorator(withKnobs);47stories.add(48 withInfo()(() => {49 return withRoot(<div

Full Screen

Using AI Code Generation

copy

Full Screen

1import { configure } from '@storybook/react';2function loadStories() {3 require('../src/stories');4}5configure(loadStories, module);6import { configure } from '@storybook/react';7function loadStories() {8 require('../src/stories');9}10configure(loadStories, module);

Full Screen

Using AI Code Generation

copy

Full Screen

1import { addDecorator } from '@storybook/react';2import withRoot from 'storybook-root-decorator';3addDecorator(withRoot);4import { addDecorator } from '@storybook/react';5import withRoot from 'storybook-root-decorator';6addDecorator(withRoot(document.getElementById('root')));7import { addDecorator } from '@storybook/react';8import withRoot from 'storybook-root-decorator';9addDecorator(withRoot(document.getElementById('root'), { style: { backgroundColor: 'red' } }));10import { addDecorator } from '@storybook/react';11import withRoot from 'storybook-root-decorator';12addDecorator(withRoot(document.getElementById('root'), { style: { backgroundColor: 'red' } }));13import { addDecorator } from '@storybook/react';14import withRoot from 'storybook-root-decorator';15addDecorator(withRoot(document.getElementById('root'), { style: { backgroundColor: 'red' } }));16import { addDecorator } from '@storybook/react';17import withRoot from 'storybook-root-decorator';18addDecorator(withRoot(document.getElementById('root'), { style: { backgroundColor: 'red' } }));19import { addDecorator } from '@storybook/react';20import withRoot from 'storybook-root-decorator';21addDecorator(withRoot(document.getElementById('root'), { style: { backgroundColor: 'red' } }));22import { addDecorator } from '@storybook/react';23import withRoot from 'storybook-root-decorator';24addDecorator(withRoot(document.getElementById('root'), {

Full Screen

Using AI Code Generation

copy

Full Screen

1import { configure } from '@storybook/react';2import { setOptions } from '@storybook/addon-options';3import { setDefaults } from '@storybook/addon-info';4setDefaults({5 styles: {6 infoBody: {7 }8 }9});10setOptions({

Full Screen

Using AI Code Generation

copy

Full Screen

1import { addDecorator } from '@storybook/react';2import { withRootDecorator } from 'storybook-root-decorator';3import { withKnobs } from '@storybook/addon-knobs';4addDecorator(withRootDecorator);5addDecorator(withKnobs);6import { withRootDecorator } from 'storybook-root-decorator';7import { withKnobs } from '@storybook/addon-knobs';8export const decorators = [withRootDecorator, withKnobs];9import { withRootDecorator } from 'storybook-root-decorator';10import { withKnobs } from '@storybook/addon-knobs';11export const decorators = [withRootDecorator, withKnobs];12import { addDecorator } from '@storybook/react';13import { withRootDecorator } from 'storybook-root-decorator';14import { withKnobs } from '@storybook/addon-knobs';15addDecorator(withRootDecorator);16addDecorator(withKnobs);17import { addDecorator } from '@storybook/react';18import { withRootDecorator } from 'storybook-root-decorator';19import { withKnobs } from '@storybook/addon-knobs';20addDecorator(withRootDecorator);21addDecorator(withKnobs);22import { addDecorator } from '@storybook/react';23import { withRootDecorator } from 'storybook-root-decorator';24import { withKnobs } from '@storybook/addon-knobs';25addDecorator(withRootDecorator);26addDecorator(withKnobs);27import { addDecorator } from '@storybook/react';28import { withRootDecorator } from

Full Screen

Using AI Code Generation

copy

Full Screen

1import { withRootDecorator } from 'storybook-root-decorator';2storiesOf('MyComponent', module)3 .addDecorator(withRootDecorator)4 .add('default', () => <MyComponent />);5import { withRootDecorator } from 'storybook-root-decorator';6storiesOf('MyComponent', module)7 .addDecorator(withRootDecorator({ theme: customTheme }))8 .add('default', () => <MyComponent />);9MIT © [jamesconran](

Full Screen

Using AI Code Generation

copy

Full Screen

1const root = require('storybook-root');2const path = require('path');3const rootPath = root(path.resolve(__dirname, '../'));4module.exports = {5 webpackFinal: async (config) => {6 ...(config.resolve.modules || []),7 path.resolve(rootPath, 'node_modules'),8 ];9 return config;10 },11};12import { withKnobs } from '@storybook/addon-knobs';13import { withKnobs } from '@storybook/addon-knobs/react';

Full Screen

Using AI Code Generation

copy

Full Screen

1import { setRootCauseConfig } from 'storybook-root-cause';2import { configure } from '@storybook/react';3setRootCauseConfig({});4configure(require.context('../src', true, /\.stories\.tsx$/), module);5const path = require('path');6module.exports = ({ config }) => {7 config.resolve.modules.push(path.resolve(__dirname, '../src'));8 config.resolve.extensions.push('.ts', '.tsx');9 config.module.rules.push({10 loader: require.resolve('babel-loader'),11 options: {12 presets: [['react-app', { flow: false, typescript: true }]],13 },14 });15 return config;16};17module.exports = {18};19import { setRootCauseConfig } from 'storybook-root-cause';20setRootCauseConfig({});21{22 "compilerOptions": {23 "paths": {24 }25 },26}27{28 "dependencies": {

Full Screen

Using AI Code Generation

copy

Full Screen

1import { withRoot } from "storybook-addon-root";2import { storiesOf } from "@storybook/react";3storiesOf("MyComponent", module)4 .add("with text", () => <MyComponent text="Hello Storybook" />);5### `withRoot(options)`6import { withRoot } from "storybook-addon-root";7import { storiesOf } from "@storybook/react";8storiesOf("MyComponent", module)9 .addDecorator(10 withRoot({11 })12 .add("with text", () => <MyComponent text="Hello Storybook" />);13| `rootStyle` | `string` | `position: relative;` | The root style to apply. |14MIT © [Kazuya Kawaguchi](

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run storybook-root automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful