diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/ReturnsVolatilityChartView.java b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/ReturnsVolatilityChartView.java index 9a679219c5..0575736dcd 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/ReturnsVolatilityChartView.java +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/ReturnsVolatilityChartView.java @@ -49,10 +49,8 @@ public class ReturnsVolatilityChartView extends AbstractHistoricView { private static final String KEY_USE_IRR = ReturnsVolatilityChartView.class.getSimpleName() + "-use-irr"; //$NON-NLS-1$ - private static final String KEY_SHOW_LABELS = ReturnsVolatilityChartView.class.getSimpleName() + "-show-labels"; //$NON-NLS-1$ private boolean useIRR = false; - private boolean showLabels = false; private ScatterChart chart; private LocalResourceManager resources; @@ -64,14 +62,12 @@ public class ReturnsVolatilityChartView extends AbstractHistoricView public void construct() { this.useIRR = getPreferenceStore().getBoolean(KEY_USE_IRR); - this.showLabels = getPreferenceStore().getBoolean(KEY_SHOW_LABELS); } @PreDestroy public void destroy() { getPreferenceStore().setValue(KEY_USE_IRR, this.useIRR); - getPreferenceStore().setValue(KEY_SHOW_LABELS, this.showLabels); } @Override @@ -112,15 +108,6 @@ protected void addButtons(ToolBarManager toolBar) manager.add(irr); manager.add(new Separator()); - manager.add(new LabelOnly(Messages.LabelChartDetailSettings)); - Action labels = new SimpleAction(Messages.LabelChartShowLabels, a -> { - this.showLabels = !this.showLabels; - reportingPeriodUpdated(); - }); - labels.setChecked(this.showLabels); - manager.add(labels); - manager.add(new Separator()); - manager.add(new LabelOnly(Messages.LabelDataSeries)); configurator.configMenuAboutToShow(manager); })); @@ -243,12 +230,6 @@ private void setChartSeries() lineSeries.setSymbolColor(color); lineSeries.enableArea(series.isShowArea()); lineSeries.setLineStyle(series.getLineStyle()); - - if (showLabels) - { - lineSeries.getLabel().setFormat(series.getLabel()); - lineSeries.getLabel().setVisible(true); - } }); }