use adjustDiaSize2D instead of adjustDia2D (and also apply setDefault2DAttributes) as this fixes the problem of the diagram beein moved outside the view area.
add a sample diagram (this one takes long to render)
add sample application to cabal file