title: Creating lineChart using JavaFx scene builder
body: <p>Ive been trying to look on the oracle tutorials on the chart section but so far i have not been able to succeed.</p>
  
  <p>what i want to do is basicly test a lineChart that i have added in my JavaFx scene builder.</p>
  
  <p>so far my code is the following:</p>
  
  <pre><code>    public class SimpleController implements Initializable{
  
      public Button btn_getData;
      public ProgressBar progressBar;
      public LineChart&lt;String, Integer&gt; lineChart;
  
      @Override
      public void initialize(URL arg0, ResourceBundle arg1) {
          // TODO Auto-generated method stu
          lineChart.getXAxis().setAutoRanging(true);
          lineChart.getYAxis().setAutoRanging(true);
          progressBar.setId("progressBar");
  
          XYChart.Series series = new XYChart.Series&lt;&gt;();
          series.getData().add(new XYChart.Data&lt;&gt;("Jan", 23));
          series.getData().add(new XYChart.Data("lol", 2));
          lineChart.getData().add(series);
      }
  }
  </code></pre>
  
  <p>As you can see all i want to do is for my program to display a sortof test. </p>
  
  <p>Hope someone is able to help.</p>
  
  <p>Also if you have time to explain what the problem is aswell that would be awesome since im trying to get better at JavaFx :)</p>