Summary: |
Drawing graphs and charts is a common task and serves to illustrate the convenience of using pre-written code libraries. In week 3 we used DOM scripting techniques along with the HTML5 canvas tag to draw graphs onto a page. The process required a number of steps ,each bar required code to
set up a canvas tag
create canvas elements using DOM scripting techniques including adding attributes to the elements
add the node to the page
drawing anything on the canvas requires several more lines of code to set the colour, specify coordinates etc. |