How do you create graphics in web applications?

I know this question is probably very simple, but I'm a newbie, so I hope this is justified. I tried to search, but could not find anything fundamental in this topic. So ... if I have a web application with users that generate certain numbers over time, and I want to create a pie chart and scatter the graph of this data, how would I do it? I was thinking of creating a jpg heap with different graphs with different values, but that would be ridiculous, so I guess there is an easier way to do this. It's true?

+4
source share
6 answers

You can use Google Charts :

Google Charts ExamplesGoogle Charts ExamplesGoogle Charts Examples

+9
source

If you don't want to dive into deep javascript and create all the visual effects, jquery has many plugins and extensions that can help you get what you want to make easier. Take a look here http://www.jqplot.com/

perhaps this can make you start in the direction you are looking for.

+4
source

I suggest using Flot, which is a jQuery addon. It is fairly easy to use and has very good documentation: http://code.google.com/p/flot/

+4
source

There are basically 3 approaches:

  • The classic (and very compatible) approach is to do what you said yourself and generate these images on the server side. You can generate these images on the fly every time someone asks for them, or you can somehow cache them - up to you.

  • The modern approach is to use SVG and Canvas to create these client-side images using Javascript. Please note that some older browsers (e.g. IE6) will not be able to display them.

  • Finally, you can use another browser plugin (such as Flash, Java, or Silverlight) to create client-side images. Another drawback is that the browser must have the appropriate plugin, and mobile devices are often at a disadvantage.

In addition, as others have noted, there are many infrastructures that distract you from troubles. I would not be surprised (but I did not use any of myself, so I can’t say) if someone even automatically chose which of the three methods is available.

+1
source

look, this will require the jquery tho library

6 jquery chart plugins http://www.reynoldsftw.com/2009/02/6-jquery-chart-plugins-reviewed/

or

Counts Mootools http://workshop.rs/2010/02/moobargraph-ajax-graph-for-mootools/

0
source

All Articles