Chart not working. I kind of did everything right, but the chart is not displayed.
Widgetset ‘com.vaadin.DefaultWidgetSet’ does not contain implementation for com.vaadin.addon.charts.Chart. Check its component connector’s @Connect mapping, widgetsets GWT module description file and re-compile your widgetset. In case you have downloaded a vaadin add-on package, you might want to refer to add-on instructions.
You need to compile your own widgetset. Did you already check the add-on instructions from the link that your application shows or from the Directory help page or in the Book of Vaadin for instructions/explanations?
The easiest way to do this is to click the “Compile widgetset” (cog icon) button in the Eclipse toolbar.
You need to compile the widgetset. This is a typical thing you need to do each time you add an addon to your project, in this case Charts.
To compile, select the project in the project tree, and find the Vaadin gear icon in the menu bar; choose compile Widgetset. When that is done, you can try again.
I am having another problem. I tried to use the chart “timeline”, but I have no libraries
AbstractVaadinChartExample and
VaadinForumDataSource . For the chart “Spline” also needs the library only
AbstractVaadinChartExample . What to do?
Where to find the library?
com.vaadin.addon.charts.demoandtestapp.AbstractVaadinChartExample;
com.vaadin.addon.charts.demoandtestapp.timeline.sources.VaadinForumDataSource;
Those look like demo classes. I couldn’t find them in our charts repository, so it must be a custom demo. In any case, you can use charts without them. For other examles, you should download the package from the directory:
https://vaadin.com/directory#addon/vaadin-charts:vaadin . It contains simpler examples to get you started with Charts.
Most demo chart contain the code
AbstractVaadinChartExample . Open code
chart “Bar” (
http://demo.vaadin.com/sampler/#addons/vaadin-charts/column-and-bar/bar ) and you will see
“import com.vaadin.addon.charts.demoandtestapp.abstractvaadinchartexample;” . But chart “Bar” works without AbstractVaadinChartExample. Most charts are without AbstractVaadinChartExample.