While hybrid gas-electric cars remain popular, sales of fully electric cars have risen sharply since 2017 as charging infrastructure expands.