How to use variables to replace controls

I use line chart, do not know how many lines, servers need to return.
Can I use a variable to replace all the elements of the graph?

http://webix.com/snippet/fb2ba2a3

BUT i don’t know how many lines
Can I use a variable to replace all the elements of the chart?

http://webix.com/snippet/53588bce

that’s good

Yep, you can use the above code or addSeries API

http://docs.webix.com/api__link__ui.rangechart_addseries.html