Vaadin Charts - dynamic BeanItemContainer

Hi everybody,

I’m testing the Charts add-on.
I’d like to display several charts (around 10) displaying information from an hardware devise.
Each second, the device sends new data.

I store device data in a single BeanItemContainer used by all charts.

The problem is about the “dynamic” point. With a List series, if I add a data, the chart is automatically updated BUT with the BeanItemContainer, series are not directly updated. I’ve searched on the forum, on the net, on the code. I’ve tested to use the ItemSetListener but I cannot call the getConfiguration.fireDataAdded() method (or fireData*)

How can I have a single “dataset” used by several charts (on different sessions) and to have a dynamic behaviour as the ListSerie one?

Is it possible with the BeanItemContainer?

Wkr,

Simon

Hi,

I think the Container API’s are not versatile enough to make efficient updates to existing charts. I’d use the ListSeries or DataSeries directly instead of putting your beans into BeanItemContainer.

If you are using data from BeanItemContainer, you can force full chart paint by calling “chart.drawChart()”.

cheers,
matti