@Override
protected Control createBody(Composite parent)
{
canvas = new PieChart(parent, SWT.NONE);
ClientSnapshot snapshot = ClientSnapshot.create(getClient(), Dates.today());
List<PieChart.Slice> slices = new ArrayList<PieChart.Slice>();
for (AccountSnapshot a : snapshot.getAccounts())
slices.add(new PieChart.Slice(a.getFunds(), a.getAccount().getName(), null));
for (SecurityPosition position : snapshot.getJointPortfolio().getPositions())
slices.add(new PieChart.Slice(position.calculateValue(), position.getSecurity().getName(), null));
Collections.sort(slices, new Slice.ByValue());
ColorWheel colors = new ColorWheel(canvas, slices.size());