# Multiple , Variable N Traces to plot

**URL:** <https://community.plotly.com/t/multiple-variable-n-traces-to-plot/13924>\
**Category:** plotly.js\
**Created:** [September 24, 2018, 9:41pm UTC](https://community.plotly.com/t/multiple-variable-n-traces-to-plot/13924 "2018-09-24T21:41:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vkg](https://avatars.discourse-cdn.com/v4/letter/v/958977/32.png) [@vkg](https://community.plotly.com/u/vkg)\
**Post date:** [September 24, 2018, 9:41pm UTC](https://community.plotly.com/t/multiple-variable-n-traces-to-plot/13924/1 "2018-09-24T21:41:28Z")

</div>

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
