Finally! A (somewhat) definitive guide to the most overrated and underrated dog breeds:

This chart, from David McCandless' fascinating new book Knowledge is Beautiful, ranks 87 dog breeds and compares those rankings to the actual popularity of the breeds in the US.

Read more: How David McCandless makes beautiful visualizations that go viral over and over

The ranking is based on a number of factors: trainability, life expectancy, lifetime cost (including the price of food and grooming), and suitability for children, among others.

The result: Border Collies, according to McCandless, are the finest dog breed in existence. Labs, Beagles, and Golden Retrievers, while not at the very top, are other popular dogs (at the top right of the chart) that he rates highly.

On the other hand, the formula seems to penalize big dogs. German Shepherds, Great Danes, and Saint Bernards, all in the top left quadrant, are in McCandless' words, "inexplicably overrated." The formula also uncovers some overlooked breeds, at the bottom right, that should be more popular, like Border Terriers and Pointers.

Finally, on the bottom left, the chart shows the breeds that are unpopular and properly so: Old English Sheepdogs, Borzois, and Afghan Hounds.

Poor, poor Afghan Hounds:

Hat tip to Slate for finding the chart. Bonus points if you can spot the easter egg in it.

WATCH: 'The best cat videos come from the wild'