Submitted by hcrx t3_ys5yum in dataisbeautiful
hcrx OP t1_ivxl2wd wrote
Reply to comment by Limenoodle_ in [OC] Visualization of energy production source per country in emojis by hcrx
Good question! This is done on a spreadsheet with a table with the energy breakdown by source per country. Then it builds the emoji table when the country changes.
Having one build emoji table per country would be way too heavy, that’s why.
ztbwl t1_iw20pgd wrote
You have 8 numbers (for each energy source) per country - let's say it's a 64 bit number. There is a total of 195 countries on earth.
That's a total weight of about 12.5 KB.
Didn't want to rant, interesting solution though, was fun to discover - but the load times could be better.
hcrx OP t1_iw2ae03 wrote
It’s true, it should be faster. The backend of this is a spreadsheet (so is the FE) so it’s a bunch of Vlookups together to create grid.
Viewing a single comment thread. View all comments