JavaScript Visualization in Spotfire

12 June 2018

Tibco Spotfire (version 7.10) has a very powerful JavaScript visualization library. In fact, you can write your charts with any existing JavaScript library - D3.js, Google Charts, Chart.js, etc. - and have all of the functionality of both Spotfire and your library of choice. There are a few tricks you’ll need to learn to get everything to work, through.

Put Your Visualization in #js_chart

Everything you draw needs to get written to the #js_chart element. If you don’t put your visualization in that container, there’s a good chance it will not work as expected.

const$container=$("#js_chart");

Use the SpotfireLoaded Event

When Spotfire is ready, it sends the SpotfireLoaded event to the window.