D3.js Grails plugin
This plugin simply provides a resource file for d3.js.
BuildConfig.groovy and add the following plugin dependency:
The version number of this plugin follows the version number of the D3.js version it bundles, with possible 4th-level point releases for patches/iterations of the plugin with the same D3.js library.
For example, the first release of this plugin is 22.214.171.124 because it provides D3.js 3.4.6. If there was a problem with this release, this might change to 126.96.36.199, 188.8.131.52, etc.
This plugin provides a
D3Resources.groovy file in which a
d3 module is defined.
So, adding a reference to the D3.js library can be done by adding the following in GSP page header:
Asset Pipeline Plugin
//= require d3 console.log("And here begins my code");
See D3.js web site for documentation and many great examples to get you started.