Jump to content

Can Spotfire "Freeze" visualization when having a scrolling page?


Ruby Chang

Recommended Posts

Hi,

I'm creating a long page where I can scroll up and down. On the left hand side, I have a TextArea with all filters I need, and a crosstable showing each well name for me to do any marking. 

Is there any way like javascript I can add to the page to do the following: The TextArea and Crosstable scroll up with the page until they reach the top and then stay there as I continue scrolling down.

Link to comment
Share on other sites

There should be a way to do this using Javascript. You should be able to target the visualizations container element and set it's position to sticky. Not sure the exact coding though. I believe you'll want to use a query selector for the sf-visual-id attribute, since that value doesn't seem to change (whereas the element's id value does). The part I'm iffy on is getting the position to switch from absolute to sticky and stay on sticky. There might be some javascript that's part of the Spotfire built-in scripting that keeps the position property from changing for whatever reason.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...