Make axis sticky

Hi. I’m using react-plotly to make the scatter plot as shown below. I’d like to have the x-axis section be sticky as the window is scrolled up. Is there some way to either do this directly, or maybe to make a plot of just the x-axis that I can put in a different segment that’s sticky? The legend is made w/out plotly, in case you’re wondering. Thanks for any ideas!