I am using jfreechartwrapper addon in my vaadin application …
private static JFreeChart createPieChart(PieDataset dataset) {
JFreeChart chart = ChartFactory.createPieChart(“Total Scanned Vehicles”, // chart
dataset, // data
true, // include legend
true, false);
PiePlot plot = (PiePlot) chart.getPlot();
plot.setLabelFont(new Font(“SansSerif”, Font.PLAIN, 12));
plot.setNoDataMessage(“No data available”);
plot.setCircular(false);
plot.setLabelGap(0.02);
return chart;
}
public static JFreeChartWrapper createPiechartDemo() {
JFreeChart piechart = createPieChart(createPieDataset());
return new JFreeChartWrapper(piechart);
}
After that adding chart into layout
HorizontalLayout vl = new HorizontalLayout();
vl.setHeight(“50%”);
vl.setWidth(“50%”);
vl.addComponent(createPiechartDemo());
But there is no change in the display
Please let me know how to change the default size(height,width) in the wrapper class.
Thanks in advance…