Multiple , Variable N Traces to plot

Hi ,

Am able to plot successfully using the plain example of defining individual traces like trace1,trace2 …etc.

Now got into a situation , where i need to plot data where Number of Traces are different for each option the user chooses… is there a way to define trace , data as variable

VK