Hi,
I would like to have nice charts in my vaadin project, so I decided to use the visualizations addon.
Since my project uses maven, I just added maven dependency for the addon and one to the google charts plugin.
I use vaadin 6.5.2, gwt-maven-plugin 2.1.0, and vaadin-maven-plugin 1.0.2-SNAPSHOT.
My pom.xml looks like this:
<dependency>
<groupId>org.vaadin.addons</groupId>
<artifactId>visualizationsforvaadin</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>com.google.gwt.google-apis</groupId>
<artifactId>gwt-visualization</artifactId>
<version>1.1.1</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
The code that should put piechart is this:
VerticalLayout mainLayout = new VerticalLayout();
pieChart = new PieChart();
pieChart.setSizeFull();
pieChart.add("alma",123);
pieChart.add("korte",444);
pieChart.add("szilva",50);
pieChart.setOption("height", 400);
pieChart.setOption("width", 400);
pieChart.setOption("is3D", true);
mainLayout.addComponent(pieChart);
setCompositionRoot(mainLayout);
I managed to compile widgetset, and it does not give me errors about it when trying to display, but I still cannot see the piechart.
The divs are there, but nothing is displayed:
Can you help me with this? Where am I wrong?