true if your page has finished rendering, or
false otherwise. Any other return value is considered an error.
true in your actual rendering function. Or you could check to see if your dynamically-loaded chart is on the page yet, like this:
Because the function is called in the context of your page, you can use all of your usual tools, like jQuery or Underscore, to determine if DocRaptor should move on to PDF rendering.