Comments

You must log in or register to comment.

Limenoodle_ t1_ivxksli wrote

Is there a reason why it has to load every time? Instead of already having the numbers/emojies stored somewhere?

20

hcrx OP t1_ivxl2wd wrote

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.

4

tinwetari t1_ivxx15v wrote

Amazing! And such a great tool to get data automatically from any source!

2

Wertoyou t1_ivy6idg wrote

I think it is supposed to say "Electricity production" instead of "Energy production". A lot of most countries energy "production" is done by internal combustion engines in cars.

10

hcrx OP t1_ivy81e3 wrote

You're right, it is electricity. The title is incorrect.

Energy would also count heating (not generated by electricity) and transportation, right.

3

Braddigan t1_ivz75ds wrote

Don't think that data looks right. Data shows Hong Kong at 99.71% generated from oil.

Wiki sources showing them at a much more balanced spread in 2020 with Natural gas (44.26%), Coal (28.63%), Imports (26.51%), Other (0.6%). Considering they also list power stations that use gas-fired, coal, and wind power stations the data may be incorrect.

2

hcrx OP t1_ivzn7mp wrote

I just confirmed and you’re right. I was pulling data from Our world in data be must be doing something wrong in some countries.

According to them, Hong Kong in 2019 is 65% coal and 35% gas.

Thanks for spotting this, I’ll update the underlaying dataset

3

gladyxxx t1_iw1pq6v wrote

Am I missing it or adding combined data of all of the countries could have been nice

1

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.

1

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.

1