Visualizations on Panel

Why cant I place a chart on a panel ? It simply doesn’t display doing the following…where “this” is
public class DashboardView extends Panel



	public DashboardView() {

ColumnChart cc = new ColumnChart();
		cc.setSizeFull();
		cc.addXAxisLabel("Truck");
		cc.setOption("title", "% Complete");
		cc.addColumn("% Complete");
		cc.setOption("legend", "none"); 
		cc.add("fhgfh", new double[]{20});
		cc.add("titg", new double[]{10});
		cc.add("40r9g", new double[]{80});
		cc.add("pwpt", new double[]{100});
		
	    addStyleName(com.jeldwen.ezship.ui.Constants.Style_DefaultView);		
		setCaption("Dashboard");		
		setSizeFull();

		/* Use a FormLayout as main layout for this Panel */
		FormLayout formLayout = new FormLayout();
		setContent(formLayout);
		
		
		HorizontalLayout hLayout = new HorizontalLayout();
		hLayout.setMargin(true);
		hLayout.setSpacing(true);

		/* Add all the created components to the form */
		hLayout.addComponent(pc);
		hLayout.addComponent(cc);
		

		addComponent(hLayout);
}

If I’m not mistaken, looks like the ColumnChart has full size, but its parent HorizotalLayout has undefined size by default. Also FormLayout has undefined height by default.

Running “Analyze layouts” with the ?debug mode can help in detecting such problems.

The latest
Cheat Sheet
and
Refcard
both contain information about the default sizes of components.

Thanks for the great tip /?debug is awesome…a little buggie but really cool. closing this thread as I Can’t have the charts going out to Google servers. Trying another addon

If you mean deleting, we normally frown upon that practice as the forum serves as a valuable information archive for other users. Notice that deleting the first message deletes the entire thread, including any useful answers made by others. Unless entire messages are sensitive (or whatever is the reason), please just delete the sensitive content by editing the messages.