@@ -0,0 +1,1839 @@
+package com.silicosciences.javafx.charts.zooming;%0A%0Aimport javafx.application.Application;%0Aimport javafx.scene.Scene;%0Aimport javafx.scene.chart.LineChart;%0Aimport javafx.scene.chart.NumberAxis;%0Aimport javafx.scene.chart.XYChart;%0Aimport javafx.scene.layout.StackPane;%0Aimport javafx.stage.Stage;%0A%0Apublic class LineChartSample extends Application %7B%0A%0A    public static void main(final String%5B%5D args) %7B%0A%09launch(args);%0A    %7D%0A%0A    @Override%0A    public void start(final Stage stage) %7B%0A%09stage.setTitle(%22Line Chart Sample%22);%0A%09// defining the axes%0A%09final NumberAxis xAxis = new NumberAxis();%0A%09final NumberAxis yAxis = new NumberAxis();%0A%09xAxis.setLabel(%22Number of Month%22);%0A%09// creating the chart%0A%09final LineChart%3CNumber, Number%3E lineChart = new LineChart%3CNumber, Number%3E(xAxis, yAxis);%0A%0A%09lineChart.setTitle(%22Stock Monitoring, 2010%22);%0A%09// defining a series%0A%09final XYChart.Series series = new XYChart.Series();%0A%09series.setName(%22My portfolio%22);%0A%09// populating the series with data%0A%09series.getData().add(new XYChart.Data(1, 23));%0A%09series.getData().add(new XYChart.Data(2, 14));%0A%09series.getData().add(new XYChart.Data(3, 15));%0A%09series.getData().add(new XYChart.Data(4, 24));%0A%09series.getData().add(new XYChart.Data(5, 34));%0A%09series.getData().add(new XYChart.Data(6, 36));%0A%09series.getData().add(new XYChart.Data(7, 22));%0A%09series.getData().add(new XYChart.Data(8, 45));%0A%09series.getData().add(new XYChart.Data(9, 43));%0A%09series.getData().add(new XYChart.Data(10, 17));%0A%09series.getData().add(new XYChart.Data(11, 29));%0A%09series.getData().add(new XYChart.Data(12, 25));%0A%0A%09// DO NOT ADD DATA TO CHART%0A%09// bc.getData().addAll(series1, series2, series3);%0A%09final StackPane pane = new StackPane();%0A%09pane.getChildren().add(lineChart);%0A%09final Scene scene = new Scene(pane, 500, 400);%0A%09new ZoomManager(pane, lineChart, series);%0A%09stage.setScene(scene);%0A%09stage.show();%0A    %7D%0A%7D

Add LineChart example