Magnus Smith
Magnus Smith

Reputation: 5963

How do they draw the charts/graphs on stackoverflow?

I spent ages learning VML and creating charts for a website once, but since VML only works in Internet Explorer, it's not much good these days.

I notice stackoverflow has graphs on my profile page, under 'reputation', but I wasnt able to see how they did it.

Can anyone suggest a way to create client-side charts or diagrams, that work in all browsers? I do not want to use the server-side method whereby an image file is created on the fly. I may wish to interact with the chart with JavaScript too.

[Edit - it's not just charts I want to draw. Perhaps little diagrams too!]

Thanks.

Upvotes: 4

Views: 2161

Answers (4)

Chris Lowis
Chris Lowis

Reputation: 560

In episode 24 of the stack overflow podcast it is mentioned that jQuery is used. A commentor on this article suggests that flot is the library used.

Upvotes: 3

Daniel M
Daniel M

Reputation: 1597

Check out the Google Chart API. You can do all sorts of sophisticated things with minimal effort - by you at design time and by you server at run time. Nice.

Upvotes: 0

mkoeller
mkoeller

Reputation: 4477

Google created a great public chart API for this purpose.

Examples:

line chart pie chart alt text

Upvotes: 3

Galwegian
Galwegian

Reputation: 42247

Flot is excellent.

Upvotes: 9

Related Questions