Generating accounts diagram dynamically