code: public static XYChart getChart(
        String chartTitle,
        String xTitle,
        String yTitle,
        String seriesName,
        List<? extends Number> xData,
        List<? extends Number> yData) {
  
      // Create Chart
      XYChart chart = new XYChart(WIDTH, HEIGHT);
  
      // Customize Chart
      chart.setTitle(chartTitle);
      chart.setXAxisTitle(xTitle);
      chart.setYAxisTitle(yTitle);
  
      XYSeries series = chart.addSeries(seriesName, xData, yData);
      series.setMarker(SeriesMarkers.NONE);
  
      return chart;
    }
docs: Creates a Chart with default style
  
  @param chartTitle the Chart title
  @param xTitle The X-Axis title
  @param yTitle The Y-Axis title
  @param seriesName The name of the series
  @param xData A Collection containing the X-Axis data
  @param yData A Collection containing Y-Axis data
  @return a Chart Object