D3 Example

The following meta data should be passed to indicate to pdfbucket service that must to wait a callback when the page is ready.

<meta name="pdf:withPdfBucketReady" content="true">

In this case the callback is defined when the json file has been read and data is avaliable to graph.

d3.json("flare.json", function(error, root) { ... if (typeof window.pdfbucketReady === 'function') { window.pdfbucketReady(); } });

Open PDF Open HTML
The complete source code of this demo can be only seen in desktop version.
Open PDF Open HTML