Bill de Blasio now has a solid lead in the Democratic primary to be mayor of New York, according to a new Quinnipiac poll. De Blasio has 36 percent of the vote to former frontrunner Christine Quinn's 21 percent and Bill Thompson's 20 percent. De Blasio would beat both easily in a runoff, the poll finds. As the chart below shows, the mayor's race has been been all over the place, but with 13 days to go before voting, we're starting to see a clear trend:

 

(This chart includes polls by other pollsters as well as Quinnipiac.)

In July, de Blasio was in fourth place. Anthony Weiner's candidacy scrambled the race, but ultimately not the in the way Weiner would have wanted. By August 13, de Blasio was getting 30 percent of the vote.

Two weeks ago, Quinnipiac found de Blasio was getting 22 percent of black voters' support. On Wednesday, the pollster found him getting 34 percent of black voters' support. This could have something to do with de Blasio's ads featuring his family — his wife, Chirlane McCray, is black, and his teenage son, Dante, has become famous for his afro. De Blasio is also performing well among very liberal voters and men.

Correction: This post originally wrongly said de Blasio was at 40 percent, instead of the correct number, 36 percent.