Javafx 2.0 and line charts
x 107
>When creating a LineChart in Javafx 2.0, is it possible to suppy a file with the data? So e.g. in the following code:  
    `ObservableList<XYChart.Series<Double,Double>> lineChartData =   FXCollections.observableArrayList(
            new LineChart.Series<Double,Double>("Series 1", FXCollections.observableArrayList(
                new XYChart.Data<Double,Double>(0.0, 1.0),
                new XYChart.Data<Double,Double>(1.2, 1.4),
                new XYChart.Data<Double,Double>(2.2, 1.9),
                new XYChart.Data<Double,Double>(2.7, 2.3),
                new XYChart.Data<Double,Double>(2.9, 0.5)
            )),
            new LineChart.Series<Double,Double>("Series 2", FXCollections.observableArrayList(
                new XYChart.Data<Double,Double>(0.0, 1.6),
                new XYChart.Data<Double,Double>(0.8, 0.4),
                new XYChart.Data<Double,Double>(1.4, 2.9),
                new XYChart.Data<Double,Double>(2.1, 1.3),
                new XYChart.Data<Double,Double>(2.6, 0.9)
            ))
        );
        
       
        LineChart chart = new LineChart(xAxis, yAxis, lineChartData);
`

    



I would like to replace the data points (new XYChart.Data<Double,Double>(0.0, 1.6),) with a file that has the data in it. Am I making sense? So in,
          

    LineChart chart = new LineChart(xAxis, yAxis, lineChartData);


lineChartData would be the data in a file,  N (rows) x 2 (columns).

Any help would be appreciated.

x 107



Javafx 2.0 and line charts
===

x 107
>When creating a LineChart in Javafx 2.0, is it possible to suppy a file with the data? So e.g. in the following code:  
    `ObservableList<XYChart.Series<Double,Double>> lineChartData =   FXCollections.observableArrayList(
            new LineChart.Series<Double,Double>("Series 1", FXCollections.observableArrayList(
                new XYChart.Data<Double,Double>(0.0, 1.0),
                new XYChart.Data<Double,Double>(1.2, 1.4),
                new XYChart.Data<Double,Double>(2.2, 1.9),
                new XYChart.Data<Double,Double>(2.7, 2.3),
                new XYChart.Data<Double,Double>(2.9, 0.5)
            )),
            new LineChart.Series<Double,Double>("Series 2", FXCollections.observableArrayList(
                new XYChart.Data<Double,Double>(0.0, 1.6),
                new XYChart.Data<Double,Double>(0.8, 0.4),
                new XYChart.Data<Double,Double>(1.4, 2.9),
                new XYChart.Data<Double,Double>(2.1, 1.3),
                new XYChart.Data<Double,Double>(2.6, 0.9)
            ))
        );
        
       
        LineChart chart = new LineChart(xAxis, yAxis, lineChartData);
`

    



I would like to replace the data points (new XYChart.Data<Double,Double>(0.0, 1.6),) with a file that has the data in it. Am I making sense? So in,
          

    LineChart chart = new LineChart(xAxis, yAxis, lineChartData);


lineChartData would be the data in a file,  N (rows) x 2 (columns).

Any help would be appreciated.

x 107


