Pre format for diagram