Charting with HTML5

One of the new and exciting features of HTML5 is the ability to build chart without any plugin or server side programming. This can be done using the canvas element and some javascript coding. The Canvas is the HTML5 element and allows to draw graphics, 2D shapes on the web page using javascript. Google Chrome supports now HTML5, some other browsers may have problems with supporting HTML5 as of the time of this writing.

Here is the code example of canvas. The example is just drawing one line from (10,10) to (80,80). The output is shown under the code box.

The good resource on HTML5 canvas tag is

Here is one more link if you want learn more on canvas element in HTML5. How to Draw with HTML 5 Canvas   By Jamie Newman

There are many different ways to do charting due to different javascript libraries:

RGraph: HTML5 Javascript charts library RGraph is a HTML5 Javascript charts library. Using the new HTML5 canvas tag, RGraph creates Javascript charts in the web browser.  RGraph supports over twenty different types of Javascript charts, including fuel gauges,  thermometer charts, waterfall charts. It is very cool looking charts, but there is one time fee for commercial usage.

Leave a Comment