Home Analytics DevShare
The community of Analytics developers are invited to follow and participate in the developer network.
OpenText technical experts collaborate with supported customers and partners in the Magellan product area.

D3 Calendar View in a BIRT report

Clement WongClement Wong EM mod
edited March 31, 2014 in DevShare
D3_Calendar_View_BIRT_Thumbnail.png<br />
<br />
In BIRT versions prior to 4.3, a dynamic Javascript loader (http://developer.actuate.com/community/devshare/_/designing-birt-reports/1576-dynamic-javascript-loader) needed to be used to load external Javascript files.<br />
<br />
BIRT 4.3 and iHub3 introduced the use of head.js to allow for easy inclusion of JavaScript libraries.<br />
<br />
This example demonstrates the ability to visual a D3 Calendar View (based on the http://bl.ocks.org/mbostock/4063318 example) in a BIRT report, using Classic Cars as a sample data source.<br />
<br />
The total orders amount were summed for each day of the year. Quantiles from $0 to $50,000 were used to segment the total order amounts. When hovering over dates with values, the formatted amounts are displayed in the tool tip for the associated date.<br />
<br />
Notes:<br />
1. For this sample only, internet connection is required to load the JavaScript and CSS files. Files can be moved to a local app/web server, and referenced in head.js accordingly.<br />
2. Configure Eclipse to use an external browser instead of the internal browser to view contents.<br />
3. The report design contains a table with Display: No Display that populates the client side values for the dates and values.

Clement Wong
Principal Analytics Architect

OpenText Corporation
http://www.actuate.com | http://www.opentext.com

Sign In or Register to comment.