title: Static labels on graph within a ScrollPane JavaFX
body: <p>I'm trying to draw multiple graphs next to each other where the the axis of the graphs can be outside the viewport. I draw each graph within a HBox which is nested within a ScrollPane. This is fine for just drawing the Y axis of the graphs, however I want to keep the labels of the X axis fixed on the screen so when some scrolls vertically the labels will always be visible.</p>
  
  <p>I've tried creating a StackPane where I nested the ScrollPane and HBox mentioned above and a second HBox to create a sort of static layer. This unfortunately broke the scrolling capability of the ScrollPane.</p>
  
  <p>Is there a way to keep the labels fixed on the Y axis while still being scrollable in the X direction?</p>
  
  <p>The FXML currently:</p>
  
  <pre><code>&lt;VBox&gt;
      &lt;ScrollPane&gt;
          &lt;HBox&gt;
  
          &lt;/HBox&gt;
      &lt;/ScrollPane&gt;
  &lt;/VBox&gt;
  </code></pre>
  
  <p>What I tried:</p>
  
  <pre><code>&lt;VBox&gt;
      &lt;StackPane&gt;
          &lt;ScrollPane&gt;
              &lt;HBox&gt;
  
              &lt;/HBox&gt;
          &lt;/ScrollPane&gt;
          &lt;HBox&gt;
  
          &lt;/HBox&gt;
      &lt;StackPane&gt;
  &lt;/VBox&gt;
  </code></pre>