@jmitchell.br, @mario60: Had a similar problem, solved in a similar way. On a second pass, added code for dealing with hiding one or more yField(s) in GUI by clicking on the respective Legend items....