public static BarChart<String, Number> bar(XYChart.Series s) {

        final CategoryAxis xAxis = new CategoryAxis();
        final NumberAxis yAxis = new NumberAxis();
        yAxis.setForceZeroInRange(false);
        xAxis.setLabel("oś X");
        yAxis.setLabel("oś Y");

        final BarChart<String, Number> barChart
                = new BarChart<String, Number>(xAxis, yAxis);

        //lineChart.setCreateSymbols(false);
        barChart.setTitle("Tytuł");
        barChart.getData().addAll(s);

        return barChart;
    }