How to integrate D3 graphic library in Lotus Domino environment (aka Xpages)


I was reading Keith´s post about 3d.js and found this Xpages sample about 3d.js in domino environment. Nice job.

http://blog.redturtle.it/2012/10/18/how-to-integrate-d3-graphic-library-in-lotus-domino-environment

Thanks Keith .

Advertisements

4 thoughts on “How to integrate D3 graphic library in Lotus Domino environment (aka Xpages)

  1. D3 actually integrates quite nicely with XPages. Just add it like you would any other Javascript library, place a script block on the page that will contain your D3 code and off you go. Then the fun really begins with writing a REST service or view to feed it by using the existing means of getting JSON from a view via readViewEntries.

    • Could you clarify what you mean by place a “script block on the page”? from the tutorial I got the impression that the code needs to go inside a button. I tried it and I keep getting the 500 error message. Did you ever have this problem?

      • There is a component called scriptBlock that may/may not show up in the component palette (xp:scriptBlock). In the value property of that component is where you would put your D3 client side javascript code. The script block will create a “” tag in the resulting html (hopefully that shows up).

        I never tried putting the csjs code in a button before as I’ve just wanted the charts to show up when the page loads, so I just put it in a script block.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s