Skip to Main Content
Spotfire Ideas Portal
Status Future Consideration
Product Spotfire
Categories User Experience
Created by Guest
Created on Mar 16, 2021

Overall custom style (CSS and JS)

We would like to update he current HTML components and extend them. For this we want to have the option to enable a custom style sheet and javascript to be loaded with every report. Then the developer has the option to utilize this and we can override some default styles (enforce).

This to create some uniformity for our reports and use the company style in an easy way. That the style will be loaded with all reports is not an concern.



  • Attach files
  • Guest
    Reply
    |
    Mar 18, 2021

    Hi Arnaud, I am aware of the JavaScript API but it's barely used because of the overhead and CORS complicates a lot.


    As a work around at the moment we use a static file server (configured in Tomcat of the Spotfire server) and integrate the CSS and JS in TextArea. This is far from optimal but at least the CSS and JS is disconnected for the reports.

  • Admin
    Arnaud Varin
    Reply
    |
    Mar 17, 2021

    Hello Bart, thanks for this submission. I understand the request.

    Did you know that you can embed Spotfire analysis and visualizations into a webpage using the Spotfire JavaScript API? This way you can have all hands on the page design.

    We have some resources about the topic. See: