Add hooks into the redraw cycle.

kgram.redraw(function(svg, scale) { ... }) gets called for each redraw.

kgram.svg() and kgram.scale() return the kgram's svg and x scale, as well.