I'll move this to the HTML forum, since it has nothing to do with
JSP.
One way I could see this working is with a one-column table to the left of the graph where each cell has has balck background and is one pxiel wide. That would be for the Y axis.
Then another table below the graph that has one row, each cell one pixel high; that's for the X axis.
If you want tick marks then it gets more complicated.