Source: W3CLove.
Pie charts are intended to show how one value compares to the whole. Since validation errors are not mutually exclusive (a single page can fail validation for multiple reasons), and the top 10 (or 100) reasons constitute an arbitrary whole, a bar chart is more suitable.
https://d3js.org/d3.v3.min.js