I think the Wikipedia image (at the top of the page [1]) is simply wrong. If you follow the link to the source, [2, page 43], you get 396.3/2280.6 = 17.4% for coal in the US, "Primary energy: Consumption by fuel."
Coal isn't used for heating much in the US, if at all. It is sometimes used for metal production, especially on the east coast, but oddly, not on the west, where hydro is used.
You were discussing production of electricity, which is shown in the table I linked on that page to be 32%.