LegendManager legendManager = new LegendManager(feedComponents);
for (int i = 0; i < feedProviders.size(); i++) {
FeedProvider fp = feedProviders.get(i);
LegendEntryView v = legendManager.getLegendEntry(feedComponents.get(i));
if (i > 0) {
v.setPlotLine(
plot.addDataset(key(fp.getSubscriptionId()), NonTimeColorPalette.getColor(i-1))
);
}
}