protected void OnDataRangeChanged() {
        if (selectedIndex != null) {
            try {
                lastData = NetworkManager.showMore(selectedIndex.getSymbol(), selectedRange);
                lineChart.getData().clear();

                if (pointerType != null && !pointerType.equals("hide")) {
                    OnPointerChange();
                    if (sdChartShowed) {
                        OnSDPointer(true);
                    }
                } else if (selectedChart.equals("line")) {
                    LinearChartManager.addSeries(lineChart, lastData, selectedRange);
                } else {
                    CandleChart.generateData(lastData);
                    //candleChart = new CandleChart();
                    chart = candleChart.createChart();
                    //pane.getStylesheets().add("resources/css/CandleStickChart.css");
                    borderPane.setCenter(chart);
                }

            } catch (Exception ex) {
                Logger.getLogger(GoodsView.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }