This library really looks great! Would you have an example which shows how

This library really looks great!
Would you have an example which shows how to add data to a chart after it has been added to the UI?

Some more info: I want to include a chart with multiple lines. All share the same x values, but different Y.

So the Data is initialized as

private final Data xValues;
private final Data[] yValues;

From a thread, data is added in these variables.
It’s not really clear to me how I should initialize the graph and force it to update on data change.

You may use soChart.update() method. However, please make sure that you are calling that from the UI thread (otherwise, use ui.access(...) as documented by Vaadin).

Thanks indeed, perfect solution!