Dynamic series and legend

Hi,

i have a line chart that should display a dynamic number of series.
Based on the number of series the legend should also change.

For example the series will be the sales number for multiple companies. And the legned should be the names of those companies.

Is this possible to do?

Both series and legend are can be redefined through API, so after adding series you can use

$$("chart").define("legend", { ... some config ... });

http://webix.com/snippet/643b7c97