public CandleStickChart createChart() {
        final NumberAxis xAxis = new NumberAxis(0,data.length+1,1);
        
        xAxis.setMinorTickCount(0);
        final NumberAxis yAxis = new NumberAxis();
        yAxis.setForceZeroInRange(false);
        final CandleStickChart bc = new CandleStickChart(xAxis,yAxis);

        xAxis.setLabel("Dzień");
        yAxis.setLabel("Wartość");
        // dodanie poczatkowych danych
        XYChart.Series<Number,Number> series = new XYChart.Series<Number,Number>();
        for (int i=0; i< data.length; i++) {
            double[] day = data[i];
            series.getData().add(
                new XYChart.Data<Number,Number>(day[0],day[1],new CandleStickValues(day[2],day[3],day[4],day[5]))
            );
        }
        ObservableList<XYChart.Series<Number,Number>> data = bc.getData();
        if (data == null) {
            data = FXCollections.observableArrayList(series);
            bc.setData(data);
        } else {
            bc.getData().add(series);
        }
        return bc;
    }