You Don’t Need Flash for Rich Graphs on a Web Page

To get started, we’ll first need to create an HTML document that has the structure we’re after and a place for our drawing canvas to reside.

<!DOCTYPE html>
<html lang="en">
    <title>Rich Graph Example using HTML5's Canvas Element</title>
    <h1>Rich Graph Example using HTML5's Canvas Element</h1>
    <canvas id="graph1" width="500" height="200">
      This text is displayed if your browser sucks.

Published by


Chad is a software developer from the Houston, Texas, USA. He's been working in the software industry since the 1980s and presently works for Alert Logic, a provider of managed security-as-a-service solutions for the Cloud. He spends way too much time bicycling or playing with cars.

2 thoughts on “You Don’t Need Flash for Rich Graphs on a Web Page”

  1. A lot of the places talking about the various HTML5 elements talk about the various state of the browsers. The canvas tag is supported well by Firefox, so that’s the important thing for now 🙂

    @MIke Lunt

Leave a Reply

Your email address will not be published. Required fields are marked *