How do they draw charts / graphs in stackoverflow?

I spent a lot of time learning VML and creating diagrams for a website once, but since VML only works in Internet Explorer, this is not very good these days.

I notice that stackoverflow has graphs on my profile page, under "reputation", but I could not see how they did it.

Can anyone suggest a way to create client charts or charts that work in all browsers? I do not want to use a server-side method in which an image file is created on the fly. I might also want to interact with the chart using JavaScript.

[Edit is not only the graphics that I want to draw. Perhaps small charts too!]

Thank.

+3
source share
4 answers

Flot great.

+8
source

For this purpose, Google has created an excellent public charting API .

Examples:

line chartpie chartalt text

+3
source

In episode 24 of the podcast mentioned that using jQuery. The component in this article assumes flot is the library used.

+3
source

Check out the Google Chart API . You can do all kinds of complex things with minimal effort - at design time and on the server at run time. Nice.

0
source

Source: https://habr.com/ru/post/1699451/


All Articles