Sorry for the late reply. Removing the the third argument from setupDiagram seems to resolve the issue for me. Thanks for all your help.
Sorry for the late reply. Removing the the third argument from setupDiagram seems to resolve the issue for me. Thanks for all your help.