var g = new line_graph();
Some questions in no particular order (all of which you'll need to be able to answer in order to figure this out): What's the output you're getting in your browser's console? What's the output you're getting in your servlet container's log file? What is the HTML that's getting generated - is it correct, and as you imagined it would be? Is the function "drw" being called?