Charts 4 is using Vaadin Framework 8. Before migrating from Charts 3 to Charts 4, you need to migrate your application to Vaadin 8, see Vaadin Framework 8 migration guide.
Most of Vaadin Charts 3 API is compatible with Vaadin Charts 4.x. There are two main changes:
Methods that use Date were deprecated, use Instant instead.
ContainerDataSeries is deprecated, use DataProviderSeries instead, see "instructions".
During migration from Charts 3 to Charts 4 you may want to use ContainerDataSeries. To do that, add a dependency to the vaadin-charts-compatibility package:
<dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-charts-compatibility</artifactId> <version>4.0.5</version> </dependency>
Afterwards, change the import statement for ContainerDataSeries to: