Eighteen percent of all electricity in the United States was produced by renewable sources in 2017, including solar, wind, and hydroelectric dams. That’s up from 15% in 2016, with the shift driven by new solar and wind projects, the end of droughts in the West, and a dip in the share of natural gas generation.