Hi there,
I’m currently working on an internship project. The goal is to display data from a company database on a Gantt diagram, wrapped into a Vaadin portlet, and accessed on a Liferay portal.
So far, I managed creating a Gantt diagram using JFreeChart. One thing my tutors and I liked : the “click and drag zoom” (you can zoom in/out on different time scales by a simple click and drag on the Gantt diagram. Pleasant way to read its data.)
Then, I tried to add it to a Vaadin portlet using JFreeChartWrapper. It worked.
But ! I quickly discovered that JfreeChartWrapper first converted the chart to a png before adding it to the portlet. Which means that no more interactivity was possible. I mean, “pleasant interactivity”, cause I still have the zoom in/out components (datepickers/combobox for time chosing, actualize button which deletes the chart, updates it and adds it again, etc.) I implemented, but it’s much more annoying this way.
My tutors said that I would have to find something else (believe me I spend a lot of time researching) if I couldn’t fix it.
So, if you guys know a way to do so, I would be more than grateful !
Chart chart = new Chart(ChartType.COLUMNRANGE);
(with all the code provided on the demo source) to my application, but I can’t figure a way to make it work.
I think I’m missing something. When lauching my project on a tomcat 7.0.42, I get the following error message :
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.
I tried to fix it by changing @VaadinServletConfiguration annotation in my code. I looked for a correct wigetset file like “com.vaadin.addon.charts.Widgetset” to add in my project file under “WebContent/VAADIN/widgetsets” (and then set the param “widgetset=“com.vaadin.addon.charts.Widgetset”” in the annotation), but found nothing.
Vaadin Charts is based on excellent, but commercial, Highcharts library, thus also Vaadin Charts als has its fee (includes special license for the underlaying Highcharts).
To make add-ons that contain client side extensions you need to compile (or create) your application widgetset. This is usually done by your tooling. E.g. If you have based your project on the maven archetype, just issue “mvn clean install” after you have added the dependency.