Hi again, Martyn
The only way I know is using a cluster to the chart. Stacked plots adapts automatically to the number of inputs to the cluster. And, in this case, you can select the number of legends to display. Courious, isn´t it?
Ok. Se attached your vi for clusters and this link about the subject.
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000068A70000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=stacked+plots&USEARCHCONTEXT_QUESTION_S=0
Cheers
Alipio
---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------