Preparation of diagram view