Wind and solar farms accounted for 8.2% of global electricity generation in 2019, according to research by independent climate think-tank Ember.