How do you decrease the margin space around the main chart element?
I got VaadinVisualizations 1.1.2 with gwtvisualizations 1.1.1 and Vaadin 6.6.8 to work after explicitly defining VerticalLayout height and chart height. However, I cannot figure out how to decrease the amount of margin (~100 pixels) around the chart. The screenshots from the VaadinVisualizations page show charts with less margin around.
Any idea on how to fix this? Thank you for your help.
//--------------------------------------------------------------------------------------------------------------------------------
BarChart bc = new BarChart();
bc.setOption("is3D", true);
bc.setSizeFull();
bc.setOption("backgroundColor", "Black");
bc.setOption("height", 400);
bc.setOption("width", 600);
bc.addXAxisLabel("Year");
bc.addBar("Expenses");
bc.addBar("Sales");
bc.add("2004", new double[]{100,200});
bc.add("2005", new double[]{75,100});
bc.add("2006", new double[]{32,234});
bc.add("2007", new double[]{25,2534});
bc.add("2008", new double[]{2343,12});
bc.setSizeFull();
VerticalLayout vl2 = new VerticalLayout();
vl2.setHeight("400px");
vl2.addComponent(bc);
Panel panel2d = new Panel();
panel2d.setHeight("400px");
panel2d.addComponent(vl2);
PortalLayout portal2 = new PortalLayout();
layout.addComponent(portal2, 1, 0);
portal2.setWidth("100%");
portal2.addComponent(panel2d);