Inside handlers.finish make the processor and the el variables global (put them in a namespace for security's sake). Then whenever you need to programmatically redraw the chart call the process function yourself: