Skip to content
Snippets Groups Projects
Commit c5bee5a3 authored by Tim Molter's avatar Tim Molter
Browse files

Issue #134 fix show series in legend logic

parent 08aac7c4
Branches
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ public abstract class Series {
private Color fillColor;
private boolean showInLegend;
private boolean showInLegend = true;
/**
* Constructor
......
......@@ -136,7 +136,7 @@ public abstract class Legend_<ST extends Styler, S extends Series> implements Ch
Map<String, S> map = chart.getSeriesMap();
for (Series series : map.values()) {
if (series.isShowInLegend()) {
if (!series.isShowInLegend()) {
continue;
}
......
......@@ -69,7 +69,7 @@ public class Legend_AxesChart<ST extends Styler_AxesChart, S extends Series> ext
Map<String, Series_AxesChart> map = chart.getSeriesMap();
for (Series_AxesChart series : map.values()) {
if (series.isShowInLegend()) {
if (!series.isShowInLegend()) {
continue;
}
......
......@@ -66,7 +66,7 @@ public class Legend_Pie<ST extends Styler_AxesChart, S extends Series> extends L
Map<String, Series> map = chart.getSeriesMap();
for (Series series : map.values()) {
if (series.isShowInLegend()) {
if (!series.isShowInLegend()) {
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment