Check the source we're discussing: https://ourworldindata.org/grapher/share-elec-by-source?coun...
As you can see it is percentage of coal as part of total energy mix that has been dropping for two decades.
As already stated above. Perhaps you missed that?
You're correct that absolute tonnage of coal use is still climbing, - but at an ever decreasing rate and was predicted to peak .. of course, thanks to some shenanigans by the Hegseth's of the world that may be deferred for a while, thanks USofA!
Of course on the plus side (for the atmosphere) there's been a drop in global fossil fuel consumption, so swings, arrows.
China, of course, is still well short of total CO2 tonnage lofted over the past century in comparison with the US - even allowing for a vastly greater population.
Kind of like what absolutely isn't happening with the current US administration.