public void changed(ObservableValue<? extends Toggle> ov, Toggle toggle, Toggle new_toggle) {
                if (new_toggle == null) {
                    toggle.setSelected(true);
                    return;
                }
                System.out.println(new_toggle.toString());

                selectedRange = DataRange.valueOf((String) new_toggle.getUserData());

                switch (selectedRange) {
                    case ONEDAY:
                        candle.setDisable(true);
                        break;
                    default:
                        candle.setDisable(false);
                        break;
                }
                OnDataRangeChanged();
            }