O'Reilly logo

Social Data Visualization with HTML5 and JavaScript by Simon Timms

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a visualization

Many of the questions on Stack Overflow have a large number of answers. The site is not optimized to show the latest answers; the answers are ranked by being the most accepted answer then randomly. This is done to give all answers a chance at being shown near the top which should, in theory, encourage people to vote for the best answer instead of just the first answer shown.

For this visualization, I would like to show how a question has been answered over time. Are more recent answers likely to get a higher score? Is the first answer always the best?

Let's start by pulling down the data for an individual question which has a large number of answers. To do this, we'll make use of the questions API. All of the API endpoints ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required