Commit 974bd051 authored by David Schnur's avatar David Schnur

Skip entries whose labelFormatter returns null.

parent 2bc87913
...@@ -2126,12 +2126,15 @@ ...@@ -2126,12 +2126,15 @@
for (var i = 0; i < series.length; ++i) { for (var i = 0; i < series.length; ++i) {
s = series[i]; s = series[i];
if (s.label) { if (s.label) {
label = lf ? lf(s.label, s) : s.label;
if (label) {
entries.push({ entries.push({
label: lf ? lf(s.label, s) : s.label, label: label,
color: s.color color: s.color
}); });
} }
} }
}
// Sort the legend using either the default or a custom comparator // Sort the legend using either the default or a custom comparator
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment