This question was inspired by this answer.
Consider we have set of data:
data = RandomReal[1, {10, 5}]
Command which allows to plot arbitrary the columns is
Manipulate[
ListLogPlot[TableOutputTotal[[All, {j, k}]],
Joined -> True], {{j, 1}, Range[10], SetterBar}, {{k, 2}, Range[10],
SetterBar}]
Is there any way to introduce interactive plot legends? Say, if I plot columns 1 and 2, there will be a legend "Quantity 1", "Quantity 2", for 3 and 5 there will be "Quantity 3", "Quantity 5" and so on.