You need to do 2 things before Embedding any D3.js visualization to your self-hosted WordPress blog
- Install the iFrame plugin for WordPress.
- Host your d3.js visualisation somewhere (so that you can access your visualisation through URL, preferably Heroku: 5 minute process)
After you are done with these two steps just use the iframe tag in the text:
<iframe src=”YOUR_COMPLETE_URL” width=”2000″ height=”800″></iframe>
Optional with Frame Border, Margin Width, Margin Height
<iframe src=”YOUR_COMPLETE_URL” width=”2000″ height=”800″ frameborder=”0″ marginwidth=”0″ marginheight=”0″></iframe>
Example:
Leave a Reply