1. Download phantomjs from website
http://phantomjs.org/download.html
2. Extract to local disk:
C:\tool\phantomjs-2.1.1-windows
3. In windows:
Control Panel\System and Security\System
Advanced system settings->Advanced->Environment Variables
Update the path variable with
path = ..;C:\tool\phantomjs-2.1.1-windows\bin
4. Restart Jaspersoft Studio and start adding Custom Visulisation Components.
Here is the more detailed version from other author
http://community.jaspersoft.com/blog/step-step-procedure-run-existing-examples-d3-chart-samplesthat-comes-product-6x-jasper-design