After looking at the ESRI website, I don't think it's the margin, just the total votes per county, and then whoever won (by whatever margin) determines the color of the county. But this is a guess.
I don't think it's the margin, just the total votes per county, and then whoever won.