Hi Gurus,
I am trying to use the invient chart in my vaadin application but am unable to get the display on the browser. There seems to be no error when the widget is compiled and when I hit the url. Would appreciate any help on it.
Below is the my sample code that I am using to see if I can get a simple chart displayed:
public class VaadininvientchartApplication extends Application {
@Override
public void init() {
Window mainWindow = new Window("Vaadininvientchart Application");
Label label = new Label("Hello Vaadin user");
mainWindow.addComponent(label);
//mainWindow.addComponent(new Label("Saurabh").setCaption("Testing..."));
InvientChartsConfig chartConfig = new InvientChartsConfig();
chartConfig.getGeneralChartConfig().setType(SeriesType.BAR);
BarConfig barCfg = new BarConfig();
barCfg.setDataLabel(new DataLabel());
barCfg.setColor(new com.invient.vaadin.charts.Color.RGB(0, 255, 0));
XYSeries seriesData = new XYSeries("Test", SeriesType.BAR, barCfg);
seriesData.addPoint(new DecimalPoint(seriesData, 107));
InvientCharts chart = new InvientCharts(chartConfig);
chart.addSeries(seriesData);
mainWindow.addComponent(chart);
setMainWindow(mainWindow);
}
}
Also, please find the eclipse project structure screen-shot attached. You can see that I have added more than the required libraries, but I did so only after I was unable to get the display.
Another problem I noticed is that once I compile the widgetset, the labels and text that I add to my mainWindow in vaadin also stops showing up on the browser.
Thanks in advance for the help.
Regards,
Saurabh