, , . , ...
In HTML5, you can use the canvas element to actually draw your graphic. Using the canvas element can be very complicated, so I won’t describe here in detail how to use it for your specific scenario.
However, here is a simple example (copied from diveintohtml5.info ):
HTML
<canvas id="graph" width="300" height="225"></canvas>
Javascript
var canvas = document.getElementById("graph");
var context = canvas.getContext("2d");
context.fillRect(50, 24, 150, 100);
source
share