@Override 
        protected void seriesAdded(XYChart.Series<Number, Number> series, int seriesIndex) {
            for (int j = 0; j < series.getData().size(); j++) {
                XYChart.Data item = series.getData().get(j);
                Node candle = createCandle(seriesIndex, item, j);
                getPlotChildren().add(candle);
            }
        }