Using a CSV file as a datasource for XYChart

Maybe this will help,